Skip to content

Documents

Documents in the library (metadata). The file is downloaded from /documents/{id}/file.

Module: Documents (documents).

  • GET /api/v1/documents - List with filters, sorting and pagination (scope documents:read)
  • GET /api/v1/documents/{id} - A record by id (scope documents:read)
  • POST /api/v1/documents - Create a record (scope documents:write)
  • PATCH /api/v1/documents/{id} - Modify the submitted fields (scope documents:write)
  • DELETE /api/v1/documents/{id} - Delete or deactivate (scope documents:write)
  • POST /api/v1/documents/{id}/add_version - New version of the document; the old one stays in the history. (scope documents:write)
  • POST /api/v1/documents/{id}/add_link - Links the document to a client, employee, supplier or project. (scope documents:write)
  • POST /api/v1/documents/{id}/remove_link - Removes the link. (scope documents:write)
  • GET /api/v1/documents/{id}/file - Download the file (current version or ?version=) (scope documents:read)
  • 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)
  • documents.created
  • documents.updated
  • documents.deleted