Document Library
All Catenda projects have a document library, use the document library to store files and folders. All items in the document library are library items. A library item can be a file or a folder. A folder can contain other folders and files. The parentId of a file is the library item id of the folder it is stored in. File library items can have multiple revisions. Each revision is a separate file.
Use the list library items endpoint with the following supported parameters to limit the result:
- parentId
- associations
- labels
- search
- createdAtFrom
- createdAtTo
- publishedAtFrom
- publishedAtTo
- include
- subFolders
Use the create library item endpoint to upload a file.
Prepare request header
Set the necessary fields of the JSON object and set the value to the request header Bimsync-Params.
Make request
Attach the file to the request and set the Content-Type header to application/octet-stream.
Use the create library item revision endpoint to upload a new revision of a file.
Use the get library item endpoint to download a file.
Make request
Set the Accept header to application/octet-stream.
Use the update library item endpoint with the following supported parameters:
- name
- parentId
- labelsToAdd
- labelsToRemove
Use the create library item endpoint to create a folder.
Prepare request body
Set the necessary fields of the JSON request body.
Make request
Send a POST request to the endpoint.
Use the update library item endpoint with the following supported parameters:
- name