跳至主要内容

編輯常見問題

更新一條常見問題知識。

請求​

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": ""
}