Skip to main content
Version: 2.0

Bulk update document metadata

PATCH 

/v2/corpora/:corpus_key/documents

Initiates an asynchronous bulk metadata update for documents in a corpus. Select documents with either document_ids or metadata_filter. If document_ids is provided, metadata_filter is ignored. The same metadata object (from the request body) is applied to every matched document, using the chosen strategy. merge (default) adds or overwrites only the supplied fields and leaves the rest intact; replace overwrites the entire metadata object.

Important: This is a best-effort operation. See the response schema documentation for details on the behavior differences between metadata_filter and document_ids parameters.

Use the returned job_id to track progress via the Jobs API.

Request

Responses

Bulk metadata update completed successfully (synchronous mode).