Skip to main content

Rename and/or replace the whole metadata object

PATCH 

/v1/knowledge_bases/:kb_id/documents/:document_id

metadata replaces the document's metadata entirely (use documents:batch_metadata for set/unset). The change reaches search filters asynchronously (payload update in the vector store), normally within seconds; updated_at changes immediately. A change made while a version is still processing reaches that version's chunks once it is published, and also replaces a pending replacement's upload metadata.

Access: API key scope knowledge:write; portal users: organization admins and owners; the knowledge base in the path must be on the key's access list.

Request​

Responses​

OK