跳至主要内容

编辑常见问题

更新一条常见问题知识。

请求​

POST https://apichat.twt.com/openapi/zhishi/edit_qa

Header 参数​

参数名类型必填说明
x-chat-signaturestring是HMAC-SHA256 签名
Acceptstring否默认值:application/json
Content-Typestring是application/json

Body 参数​

参数名类型必填说明
appidstring是应用标识
timestampinteger是请求时间戳
ranstrstring是随机字符串
idinteger是常见问题知识 ID
mcstring是更新后的问题标题,1 至 255 个字符
nrstring是更新后的答案内容,1 至 2000 个字符

请求示例​

{
"appid": "your-appid",
"timestamp": 1735689600,
"ranstr": "random-string",
"id": 1001,
"mc": "如何重置密码?",
"nr": "请使用登录页上的密码重置链接。"
}

返回响应​

200 成功​

参数名类型必填说明
codeinteger是1 正常,-1 失败
msgstring是响应信息
datastring是响应数据
{
"code": 1,
"msg": "ok",
"data": ""
}

错误示例​

{
"code": -1,
"msg": "参数错误",
"data": ""
}