Replace Document Metadata

Replace a document’s custom_metadata with the object in this request; keys omitted here are removed, including from the search filter index. Bulk indexing stamps one metadata object per request, so per-file values (such as an ID from your own system) are set here after indexing.

Path parameters

collection_namestringRequired
document_idstringRequired

Request

This endpoint expects an object.
metadataobjectOptional

Response

Replace Document Metadata response.
document_idstring
custom_metadatamap from strings to anyOptional
filterablebooleanOptionalDefaults to false
updated_atstring or nullOptional
© 2026 Captain