Skip to navigation

Overwrite Document Metadata in Batches

Overwrite the custom_metadata object on up to 100 documents in one request. Each item behaves like Overwrite Document Metadata. Returns 200 with one result per item, in order. Overwrite is destructive: omitted keys are removed and {} clears the target. Consider copying the collection first. Envelope, partial success, and unknown outcomes are covered in the Batch Metadata & Relations guide.

Path parameters

collection_namestringRequired

Request

This endpoint expects an object.
itemslist of objectsRequired

1 to 100 items. The request body may not exceed 1 MiB of UTF-8 JSON.

Response

Overwrite Document Metadata in Batches response.
resultslist of objects
One result per request item, in request order. Never empty for an accepted batch.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
413
Content Too Large Error