> For a complete page index of the Captain API documentation, fetch https://docs.captain.dev/llms.txt?excludeSpec=true

# Document Metadata Endpoints

* **Replace or merge a document's metadata**: `PUT` and `PATCH` on `/v3/collections/{collection_name}/documents/{document_id}/metadata` write custom metadata after indexing, and the v3 documents list accepts `metadata_filter` to look documents up by that metadata.