Upload multiple documents
POST/documents/batch
Strongly Consistent
Learn about endpoint consistencyUpload multiple documents to the Camunda 8 cluster.
The caller must provide a file name for each document, which will be used in case of a multi-status responseto identify which documents failed to upload. The file name can be provided in the Content-Disposition
headerof the file part or in the fileName
field of the metadata. You can add a parallel array of metadata objects. Theseare matched with the files based on index, and must have the same length as the files array.To pass homogenous metadata for all files, spread the metadata over the metadata array. A filename value provided explicitly via the metadata array in the request overrides the Content-Disposition
headerof the file part.
In case of a multi-status response, the response body will contain a list of DocumentBatchProblemDetail
objects,
each of which contains the file name of the document that failed to upload and the reason for the failure.
The client can choose to retry the whole batch or individual documents based on the response.
Note that this is currently supported for document stores of type: AWS, GCP, in-memory (non-production), local (non-production)
Request
Responses
- 201
- 207
- 400
All documents were uploaded successfully.
Not all documents were uploaded successfully. More details are provided in the response body.
The provided data is not valid.