Documents
Documents in the library (metadata). The file is downloaded from /documents/{id}/file.
Module: Documents (documents).
Endpoints
Section titled “Endpoints”GET /api/v1/documents- List with filters, sorting and pagination (scopedocuments:read)GET /api/v1/documents/{id}- A record by id (scopedocuments:read)POST /api/v1/documents- Create a record (scopedocuments:write)PATCH /api/v1/documents/{id}- Modify the submitted fields (scopedocuments:write)DELETE /api/v1/documents/{id}- Delete or deactivate (scopedocuments:write)POST /api/v1/documents/{id}/add_version- New version of the document; the old one stays in the history. (scopedocuments:write)POST /api/v1/documents/{id}/add_link- Links the document to a client, employee, supplier or project. (scopedocuments:write)POST /api/v1/documents/{id}/remove_link- Removes the link. (scopedocuments:write)GET /api/v1/documents/{id}/file- Download the file (current version or ?version=) (scopedocuments:read)
Fields
Section titled “Fields”id(string, uuid; read): Unique identifier (UUID).folder_id(string; write)title(string; write)description(string; write)category(string; write)tags(array; write)visibility(string; write)expires_at(string, date; write)owner_id(string; read)owner_name(string; read)current_version(integer; read)archived(boolean; read)expiry_notified_at(string, date-time; read)created_at(string, date-time; read): Creation date (ISO 8601).updated_at(string, date-time; read): Last modification date (ISO 8601).esign_id(string, uuid; read)name(string; write, required)type(string; write, required)content_base64(string; write, required)link_type(string; write)link_id(string; write)
Events
Section titled “Events”documents.createddocuments.updateddocuments.deleted