Detele Docs
最新の更新:
Detele Docs
Delete docs from knowledge base.
Request Method
DELETE
Request URL
https://api.gptbots.ai/v1/bot/doc/batch/delete
Request Authentication
See Overview for authentication details.
Request
Request Example
curl --location --request DELETE 'https://api.gptbots.ai/v1/bot/doc/batch/delete?doc=67501ddb8cf3c334cd0e8e70,12345ddb8cf3c334cd0e0987' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
curl --location --request DELETE 'https://api.gptbots.ai/v1/bot/doc/batch/delete?doc=67501ddb8cf3c334cd0e8e70,12345ddb8cf3c334cd0e0987' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json'
このコードブロックは、フローティングウィンドウに表示されます
Request Header
Field | Type | Description |
---|---|---|
Authorization | Bearer ${token} | Use Authorization: Bearer ${token} for authentication. Get the key from the API Keys page as token. |
Content-Type | application/json | Data type, set to application/json . |
Request Body
Field | Type | Required | Description |
---|---|---|---|
doc | Array |
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. |