Update Document
PUT
/api/documents/{documentId}Update a documents attributes.
Request
Path Params
documentId
string
required
Body Params application/json
name
string
optional
The new name of the document.
user_metadata
string | integer | boolean | array | object | number | null
optional
Arbitrary user metadata that will be returned in citations in a Knowledge Bot chat.
Example
{
"name": "Tutorial: How to do X",
"user_metadata": {
"url": "https://google.de"
}
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : Rawtext/plain
Example
{
"id": "doc_01hdnmm8azwy6dhbsacx8w6c9k",
"knowledge_bot_id": "kb_01ha1ntvyq68jxezgnkwr63wm1",
"name": "Tutorial: How to do X",
"status": "READY",
"user_metadata": {
"url": "https://google.de"
}
}
Last modified: a year ago