API Reference
Revision
Create revision
code examples curl location globoff request post 'https //api catenda com/v2/projects/{project id}/revisions' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'bimsync params {"comment" "string","filename" "string","model" "string"}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("bimsync params", "{\\"comment\\" \\"string\\",\\"filename\\" \\"string\\",\\"model\\" \\"string\\"}"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //api catenda com/v2/projects/{project id}/revisions", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api catenda com/v2/projects/{project id}/revisions") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["bimsync params"] = "{\\"comment\\" \\"string\\",\\"filename\\" \\"string\\",\\"model\\" \\"string\\"}" response = https request(request) puts response read body import requests import json url = "https //api catenda com/v2/projects/{project id}/revisions" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'bimsync params' '{"comment" "string","filename" "string","model" "string"}' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // ok { "callbackuri" "https //example com", "filename" "arc ifc", "id" "fcbb72736862483f89d44890d47ec112", "model" { "id" "47024671cbd642a9c7c84808d4d509f5", "name" "model name" }, "processing" { "progress" 0, "status" "waiting", "error" { "code" 0, "message" "" } }, "revision" { "comment" "revision description", "createdat" "2016 09 26t14 45 20 000z", "id" "924809076a694255c489d236517a55da", "model" { "id" "47024671cbd642a9c7c84808d4d509f5", "name" "model name" }, "user" { "id" "524809076a694255b989d236517a55da", "name" "john doe", "username" "john\@doe com", "email" "john\@doe com", "createdat" "2016 09 20t14 55 22 000z", "avatarurl" "https //api catenda com/v2/avatar/397t0ccd8f74516096c738de15dc6512", "type" "user" }, "version" 1 }, "user" { "id" "524809076a694255b989d236517a55da", "name" "john doe", "username" "john\@doe com", "email" "john\@doe com", "createdat" "2016 09 20t14 55 22 000z", "avatarurl" "https //api catenda com/v2/avatar/397t0ccd8f74516096c738de15dc6512", "type" "user" } }