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.

List documents

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

Upload a file

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.

JSON


Make request

Attach the file to the request and set the Content-Type header to application/octet-stream.

Curl


Upload a file revision

Use the create library item revision endpoint to upload a new revision of a file.

Download a file

Use the get library item endpoint to download a file.

Make request

Set the Accept header to application/octet-stream.

Curl


Update a file

Use the update library item endpoint with the following supported parameters:

  • name
  • parentId
  • labelsToAdd
  • labelsToRemove

Create a folder

Use the create library item endpoint to create a folder.

Prepare request body

Set the necessary fields of the JSON request body.

JSON


Make request

Send a POST request to the endpoint.

Curl


Update a folder

Use the update library item endpoint with the following supported parameters:

  • name



Updated 17 Jun 2024
Did this page help you?