Copy a document into another collection
POSThttps://platform.docana.com/api/v1/documents/:id/export/
Takes the source document id as the id path parameter and a JSON body { collectionId } (destination collection). The copy is a new document: it starts QUEUED and is ingested again, which spends budget, and the original stays where it was. To relocate a document instead, keeping its knowledge and paying nothing, use moveDocumentToCollection. Failure responses other than the invalid-id 400 are plain-text bodies.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The copied document
Invalid document id (standard shape) or missing collectionId (plain-text body)
The API key or session is missing, expired, or malformed.
No write permission on the destination collection (plain-text body)
Source document not found (plain-text body)
Unexpected server error.