Detele Docs
Detele Docs
Delete docs from knowledge base.
Request Method
DELETE
Request URL
https://api-${endpoint}.gptbots.ai/v1/bot/doc/batch/delete
Request Authentication
See Overview for authentication details.
Request
Request Example
curl -X DELETE 'https://api-${endpoint}.gptbots.ai/v1/bot/doc/batch/delete?doc=67501ddb8cf3c334cd0e8e70,12345ddb8cf3c334cd0e0987' \
-H 'Authorization: Bearer ${API Key}'
curl -X DELETE 'https://api-${endpoint}.gptbots.ai/v1/bot/doc/batch/delete?doc=67501ddb8cf3c334cd0e8e70,12345ddb8cf3c334cd0e0987' \
-H 'Authorization: Bearer ${API Key}'
บล็อกโค้ดนี้ในหน้าต่างลอย
Request Header
Field | Type | Description |
---|---|---|
Authorization | Bearer ${API Key} | Use Authorization: Bearer ${API Key} for authentication. Get API key from API Key page. |
Request Parameters
Field | Type | Required | Description |
---|---|---|---|
doc | Array<String> | Yes | Document IDs to be deleted. |
Response
Response Example
{
"code": 0,
"message": "OK"
}
{
"code": 0,
"message": "OK"
}
บล็อกโค้ดนี้ในหน้าต่างลอย
Success Response
Field | Type | Description |
---|---|---|
code | Int | Response code. |
message | String | Response details. |
Failure Response
Field | Type | Description |
---|---|---|
code | Int | Error code. |
message | String | Error details. |