Skip to navigation

Update Document Metadata

Merge keys into a document’s custom_metadata without restating the whole object; a null value deletes its key. Use PUT instead to replace the stored object wholesale.

Path parameters

collection_namestringRequired
document_idstringRequired

Request

This endpoint expects an object.
custom_metadatamap from strings to anyOptional
The custom metadata object. Keys that Captain uses for its own chunk attributes are reserved and rejected with 400.
metadatamap from strings to anyOptionalDeprecated

Deprecated alias for custom_metadata.

Response

Update Document Metadata response.
document_idstring
custom_metadatamap from strings to anyOptional
filterablebooleanOptionalDefaults to false
updated_atstring or nullOptional