Move a document to another collection
POSThttps://platform.docana.com/api/v1/documents/:id/move/
Moves an uploaded document into another collection of the same company, optionally into one of its manual folders. The document keeps its id, status and knowledge: nothing is re-ingested and no budget is spent, unlike exportDocumentToCollection, which copies the file into a new QUEUED document and leaves the original behind. The document takes the privacy of the destination collection. Connector-synced documents cannot be moved (the next sync run would recreate them at the source). Requires write access to both collections.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
The document was moved
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
No write access to the source or destination collection
Document or destination folder not found
The document is connector-synced, already lives in the destination collection, or changed while being moved
Unexpected server error.