Skip to main content
Document Operations

Bulk update metadata values

<small>Requires an API token with the Document Manager role.</small>

PUT
/documents/{document}/metadata-values

Sets or removes the values of one or more metadata fields for a document in a single request.

The changes parameter is a list of up to 20 objects, each identifying a metadata by its uuid or name, and specifying an operation:

  • set: adds the metadata to the document (if not already present) and sets its value. The value follows the same format as the Add metadata value to document endpoint.
  • unset: removes the document's value for the metadata, equivalent to the Delete metadata value endpoint.

Returns the metadata values that were set; metadata values that were unset are not included in the response.

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

documentstringrequired

The document UUID

Body

application/json
changesobject[]

A list of up to 20 changes to apply to the document's metadata values.

Response

application/json

Array of MetadataValueResource

dataobject[]required