Agents Platform
Update Document
Update the name and/or content of a document.
PATCH
Update Document
Headers
Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.
Path Parameters
The id of a document from the knowledge base. This is returned on document addition.
Example:
"21m00Tcm4TlvDq8ikWAM"
Body
application/json
Response
Successful Response
- GetKnowledgeBaseURLResponseModel
- GetKnowledgeBaseFileResponseModel
- GetKnowledgeBaseTextResponseModel
- GetKnowledgeBaseFolderResponseModel
Available options:
prompt, auto Example:
Allowed value:
"url"The ID of the parent folder, or null if the document is at the root level.
The folder path segments leading to this entity, from root to parent folder.
Canonical representation of a knowledge base document's stored content.
HTML is the legacy default; documents created before this field existed are interpreted as HTML.
Available options:
html, markdown