API ReferenceKnowledge base documents
Update document in Knowledge Base
Updates the content and metadata of an existing document. Optionally regenerates the embedding if the content changed.
Authorization
ApiKeyAuth AuthorizationBearer <token>
Bearer token for API authentication
In: header
Path Parameters
id*string
Unique ID of the Knowledge Base
documentId*string
Unique ID of the document
Request Body
application/json
content?object
New document content
metadata?object
Updated metadata
regenerateEmbedding?boolean
Force embedding regeneration
Default
falseResponse Body
application/json
curl -X PUT "https://app.docutray.com/api/knowledge-bases/string/documents/string" \ -H "Content-Type: application/json" \ -d '{}'{
"data": {
"id": "string",
"documentId": "string",
"content": {},
"metadata": {},
"updatedAt": "2019-08-24T14:15:22Z"
}
}Empty
Empty
Empty
Empty
Empty
Empty