删除文档知识
删除一条网页或文章知识。
请求
POST https://apichat.twt.com/openapi/zhishi/delete_doc
Header 参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
x-chat-signature | string | 是 | HMAC-SHA256 签名 |
Accept | string | 否 | 默认值:application/json |
Content-Type | string | 是 | application/json |
Body 参数
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
appid | string | 是 | 应用标识 |
timestamp | integer | 是 | 请求时间戳 |
ranstr | string | 是 | 随机字符串 |
id | integer | 是 | 已有的网页或文章知识 ID |
请求示例
{
"appid": "your-appid",
"timestamp": 1735689600,
"ranstr": "random-string",
"id": 1002
}
返回响应
200 成功
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
code | integer | 是 | 1 正常,-1 失败 |
msg | string | 是 | 响应信息 |
data | string | 是 | 响应数据 |
{
"code": 1,
"msg": "ok",
"data": ""
}
错误示例
{
"code": -1,
"msg": "参数错误",
"data": ""
}