Upload documents to a collection
POSThttps://platform.docana.com/api/v1/collections/:collectionId/documents/
Multipart upload of one or more files into a collection. Large files can use the resumable chunked protocol driven by the x-resume-token, x-resume-from-byte and x-total-file-size request headers (see src/shared/chunked-upload.ts); plain multipart posts of the files field work without any of them. Requires write permission on the collection.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Upload accepted; one entry per uploaded file (or chunk acknowledgement in chunked mode)
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
No write permission on the collection
A resource referenced by the path does not exist or is not visible to the caller.
Unexpected server error.