Models and Revisions
upload a model revision use the create library item endpoint to upload an ifc file valid file formats are ifc ifczip prepare request header set the necessary fields of the json object and set the value to the request header bimsync params { "comment" "optional comment describing the revision", "filename" "filename ifc", "model" "67a33d878bj7461f4352a64e1aef961h" } optional callback uri if you want to receive a notification when the revision is processed, set the callbackuri field to the request header bimsync params { "callbackuri" "https //example com/callback", "comment" "optional comment describing the revision", "filename" "filename ifc", "model" "67a33d878bj7461f4352a64e1aef961h" } catenda will issue an http get request to the callback uri with the following query parameters token contains a revision status id result with value success or error make request attach the file to the request and set the content type header to application/ifc curl x post \\ 'https //api catenda com/v2/projects/{project id}/revisions/' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your access token' \\ \ header 'content type application/ifc' \\ \ header 'bimsync params {"callbackuri" "https //example com/callback","comment" "optional comment describing the revision","filename" "filename ifc","model" "67a33d878bj7461f4352a64e1aef961h"}' \\ \ data binary '@/path/to/filename ifc' download a model revision use the get revision endpoint to download a model revision make request set the accept header to application/ifc curl x get \\ 'https //api catenda com/v2/projects/{project id}/revisions/{revision id}' \\ \ header 'accept application/ifc' \\ \ header 'authorization bearer your access token'