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](/reference/v3/document/metadata/replace). Returns 200 with one result per item, in order. Overwrite is destructive: omitted keys are removed and `{}` clears the target. Consider [copying the collection](/reference/collections/copy) first. Envelope, partial success, and `unknown` outcomes are covered in the [Batch Metadata & Relations](/guides/batch-writes) guide.
Path parameters
collection_name
Request
This endpoint expects an object.
items
1 to 100 items. The request body may not exceed 1 MiB of UTF-8 JSON.
Response
Overwrite Document Metadata in Batches response.
results
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