Delete Document
Delete one web or article knowledge entry.
Request
POST https://apichat.twt.com/openapi/zhishi/delete_doc
Header Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
x-chat-signature | string | Yes | HMAC-SHA256 signature |
Accept | string | No | Default: application/json |
Content-Type | string | Yes | application/json |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
appid | string | Yes | Application identifier from the console |
timestamp | integer | Yes | Request timestamp |
ranstr | string | Yes | Random string |
id | integer | Yes | Existing web or article knowledge ID |
Request Example
{
"appid": "your-appid",
"timestamp": 1735689600,
"ranstr": "random-string",
"id": 1002
}
Response
200 Success
| Parameter | Type | Required | Description |
|---|---|---|---|
code | integer | Yes | 1 success, -1 failure |
msg | string | Yes | Response message |
data | string | Yes | Response payload |
{
"code": 1,
"msg": "ok",
"data": ""
}
Error Example
{
"code": -1,
"msg": "Invalid parameters",
"data": ""
}