Move a document to a collection
Move a document into a collection, or out to “Default”. Sets the collection
foreign key and swaps the mirrored ["tag", slug] pair so retrieval/extraction
filters follow the move. Requires project admin permission.
Authorizations
Use Authorization: Bearer
Path Parameters
UUID of the project
UUID of the document
Body
The target collection's id (must belong to this project), or null to
move the document to "Default".
Response
The updated document.
Document filename
URL to the document file
MIME type of the document
"application/pdf"
URL to generated PDF version (if applicable)
Origin of the document
upload, connector Metadata about the document source
Number of pages in the document
File size in bytes
List of key-value metadata pairs. Each element is a two-element array [key, value].
2 elementsThe collection this document belongs to (the membership foreign key); null
means the "Default" (uncategorised) bucket. A mirrored ["tag", slug] pair is
also kept on metadata. Move a document with the set-collection action.
Document deletion status
active, deleting, deleted When the document was added to the project.
The user who uploaded the document. Only returned to callers with admin permission
on the project; null for non-admin callers. Also null for connector-imported
documents (which are attributed to the connector, not a person) and for documents
created before this was tracked.