Skip to main content
Use this endpoint when you know a source ID and need to update its metadata in place. It updates both the source row and indexed chunk metadata used by query/list filters.

Request

Path parameters

Body

At least one of tenant_metadata or additional_metadata is required.
This edit endpoint intentionally uses tenant_metadata for schema-backed source metadata. The shorter metadata field used by ingestion/list examples is not accepted in this PATCH body. document_metadata is also not accepted; use additional_metadata.

Behavior

  • The update is a merge/upsert:
    • keys present in the request are inserted or overwritten
    • keys omitted from the request are preserved
  • The source must already exist. This endpoint does not create sources.
  • The endpoint edits one source at a time. Bulk metadata edits are not supported.
  • Updated metadata is visible to /query metadata filters and /context/list filters.
  • If an edited tenant metadata field has enable_dense_embedding or enable_sparse_embedding, HydraDB synchronously refreshes the relevant Milvus metadata search lane.
  • If the edited fields are enable_match-only, the edit remains MongoDB-only and milvus_sync_required is false.

Response

Validation and errors