Add Document to Knowledge Bot
TestingPOST
/api/knowledge-bots/{id}/documentsAdd a Document to Knowledge Bot.
Request
Path Params
id
string
required
Body Params application/json
path
string
required
The path returned from the prepare-upload API.
filename
string
required
The name of the file you want to add to the Knowledge Bot.
user_metadata
string | integer | boolean | array | object | number | null
optional
Example
{
"path": "/etc/namedb/hatchback_repurpose_bicycle.yml",
"filename": "payment.crl",
"user_metadata": "reprehenderit ad Ut esse sit"
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : Rawtext/plain
Example
{
"knowledge_base_id": "1ab61a25-f4b7-42f7-8845-0bfce7a41943",
"name": "fugit",
"path": "quasi",
"created_at": "2096-03-24T04:25:55.607Z",
"updated_at": "2032-05-10T13:22:01.954Z",
"last_parsed_page": 49509,
"status": "animi",
"id": "5fe1fd39-b1ae-4976-b4fe-34943b693b0d"
}
Last modified: a year ago