Documents

Document management operations

List all documents

get

Returns all documents accessible to the authenticated user within their organization

Authorizations
connect.sidstringRequired

Session-based authentication via HTTP-only cookie

Responses
chevron-right
200

List of documents

application/json
get
/documents

Create a new document

post

Creates a new document record

Authorizations
connect.sidstringRequired

Session-based authentication via HTTP-only cookie

Body
namestringRequired

Document name

Example: Contract Draft.docx
descriptionstring · nullableOptional

Document description

typestringRequired

Document type/format

Example: application/vnd.openxmlformats-officedocument.wordprocessingml.document
urlstringRequired

URL to the document

organizationIdinteger · nullableOptional

Organization to associate with

projectIdinteger · nullableOptional

Project to link document to

Responses
chevron-right
200

Document created successfully

application/json
idintegerRequired

Unique document identifier

Example: 1
namestringRequired

Document name

Example: Q1 Financial Report.pdf
descriptionstring · nullableOptional

Document description

Example: Quarterly financial summary
typestringRequired

Document type/format

Example: application/pdf
urlstringRequired

URL to access the document

Example: /uploads/documents/q1-report.pdf
uploaderIdintegerRequired

User ID who uploaded the document

Example: 5
organizationIdinteger · nullableOptional

Associated organization ID

createdAtstring · date-timeRequired

Upload timestamp

post
/documents

Update a document

patch

Updates an existing document's metadata

Authorizations
connect.sidstringRequired

Session-based authentication via HTTP-only cookie

Path parameters
idintegerRequired

Document ID

Body
namestringOptional
descriptionstring · nullableOptional
typestringOptional
urlstringOptional
Responses
chevron-right
200

Document updated successfully

application/json
idintegerRequired

Unique document identifier

Example: 1
namestringRequired

Document name

Example: Q1 Financial Report.pdf
descriptionstring · nullableOptional

Document description

Example: Quarterly financial summary
typestringRequired

Document type/format

Example: application/pdf
urlstringRequired

URL to access the document

Example: /uploads/documents/q1-report.pdf
uploaderIdintegerRequired

User ID who uploaded the document

Example: 5
organizationIdinteger · nullableOptional

Associated organization ID

createdAtstring · date-timeRequired

Upload timestamp

patch
/documents/{id}

List documents for a project

get

Returns all documents associated with a specific project

Authorizations
connect.sidstringRequired

Session-based authentication via HTTP-only cookie

Path parameters
projectIdintegerRequired

Project ID

Responses
chevron-right
200

List of project documents

application/json
get
/documents/{projectId}

Link document to project

post

Associates a document with a project

Authorizations
connect.sidstringRequired

Session-based authentication via HTTP-only cookie

Path parameters
documentIdintegerRequired

Document ID

projectIdintegerRequired

Project ID

Responses
chevron-right
200

Document linked to project successfully

No content

post
/documents/{documentId}/projects/{projectId}

No content

Unlink document from project

delete

Removes the association between a document and a project

Authorizations
connect.sidstringRequired

Session-based authentication via HTTP-only cookie

Path parameters
documentIdintegerRequired

Document ID

projectIdintegerRequired

Project ID

Responses
chevron-right
200

Document unlinked from project successfully

No content

delete
/documents/{documentId}/projects/{projectId}

No content

Upload a file

post

Uploads a file and returns the file URL

Authorizations
connect.sidstringRequired

Session-based authentication via HTTP-only cookie

Body
filestring · binaryRequired

The file to upload

Responses
chevron-right
200

File uploaded successfully

application/json
urlstringOptional

URL of the uploaded file

post
/upload

Last updated

Was this helpful?