Update document
PATCH
Update a document's title or content. Updating content reprocesses the document for RAG.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Path parameters
senderIdstringrequiredkbIdstringrequireddocIdstringrequired
Body
application/json
titlestringLimitsmax length 200contentstringLimitsmax length 500000
Responses
200Document updated.
documentobjectrequired8 properties
idstringrequiredknowledgeBaseIdstringrequiredtitlestringrequiredcontentLengthintegerrequiredLength of the document content in characters.
chunkCountintegerrequiredNumber of chunks created from this document.
isProcessedbooleanrequiredWhether the document has been processed for RAG.
createdAtstring<date-time>requiredupdatedAtstring<date-time>required
400Invalid request.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
404Document not found.
codestringrequiredmessagestringrequireddetailsobject