GET /documents?q=&folderId=&recursive=&includeArchived= | List or search documents. folderId can be unfiled |
POST /documents | Create: { name, kind, number?, description?, folderId? }. Starts with a main branch and an empty draft |
GET /documents/:id | A document with its branches, drafts, versions, revisions and reservations |
PATCH /documents/:id | Name, description |
DELETE /documents/:id | Delete, if it was never released and nothing uses it |
POST /documents/:id/archive, /unarchive | Archive, bring back |
POST /documents/:id/copy | An independent copy: { name?, number?, versionId? } |
POST /documents/move | Move several: { ids, folderId }, null for Unfiled |
GET /documents/:id/where-used | The assemblies that use it |
GET /documents/:id/thumbnail | Its newest picture |
GET /documents/:id/audit | Everything that was done to it |
GET /folders | All folders, with their parents and how many documents each holds |
POST /folders, PATCH /folders/:id, DELETE /folders/:id | Create, rename or move, delete an empty one |