Update Document by Text
Updates an existing document’s text content, name, or processing configuration. Re-triggers indexing when the content changes.
Authorizations
API Key authentication. For all API requests, include your API Key in the Authorization HTTP Header, prefixed with Bearer. Example: Authorization: Bearer {API_KEY}. Strongly recommend storing your API Key on the server-side, not shared or stored on the client-side, to avoid possible API-Key leakage that can lead to serious consequences. Requests with a missing or invalid API key fail with HTTP 401 and error code unauthorized.
Path Parameters
Knowledge base ID.
Document ID.
Body
Document name. Required when text is provided.
Document text content.
Processing rules for chunking.
text_model for standard text chunking, hierarchical_model for parent-child chunk structure, qa_model for question-answer pair extraction.
text_model, hierarchical_model, qa_model Language of the document for processing optimization.
Retrieval model configuration. Controls how chunks are searched and ranked when querying this knowledge base.