Skip to main content
Version: Next

Upload multiple documents (alpha)

POST 

/documents/batch

Upload 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 response to identify which documents failed to upload. The file name can be provided in the Content-Disposition header of the file part or in the filename field of the metadata part. If both are provided, the filename field takes precedence.

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 currently only supports an in-memory document store, which is not meant for production use.

note

This endpoint is an alpha feature and may be subject to change in future releases.

Request

Query Parameters

    storeId string

    The ID of the document store to upload the documents to.

Body

required
    files binary[]required

Responses

All documents were uploaded successfully.

Schema
  • Array [
  • createdDocuments object[]
  • Array [
  • camunda.document.type string

    Possible values: [camunda]

    Document discriminator. Always set to "camunda".

    storeId string

    The ID of the document store.

    documentId string

    The ID of the document.

    contentHash string

    The hash of the document.

    metadata object

    Information about the document.

    contentType string

    The content type of the document.

    fileName string

    The name of the file.

    expiresAt date-time

    The date and time when the document expires.

    size int64

    The size of the document in bytes.

    processDefinitionId string

    The ID of the process definition that created the document.

    processInstanceKey int64

    The key of the process instance that created the document.

    customProperties object

    Custom properties of the document.

    property name* any

    Additional properties allowed.

  • ]
  • failedDocuments object[]
  • Array [
  • filename string

    The name of the file.

    detail string

    The detail of the failure.

  • ]
  • ]
Loading...