Skip to main content

Delete FAQ

Delete one FAQ knowledge entry.

Request​

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

Header Parameters​

ParameterTypeRequiredDescription
x-chat-signaturestringYesHMAC-SHA256 signature
AcceptstringNoDefault: application/json
Content-TypestringYesapplication/json

Body Parameters​

ParameterTypeRequiredDescription
appidstringYesApplication identifier from the console
timestampintegerYesRequest timestamp
ranstrstringYesRandom string
idintegerYesFAQ knowledge ID
is_confirm_link_deleteintegerNoSet to 1 only after confirming removal of linked quick-entry content

Request Example​

{
"appid": "your-appid",
"timestamp": 1735689600,
"ranstr": "random-string",
"id": 1001,
"is_confirm_link_delete": 1
}

Response​

200 Success​

ParameterTypeRequiredDescription
codeintegerYes1 success, -1 failure
msgstringYesResponse message
datastringYesResponse payload
{
"code": 1,
"msg": "ok",
"data": ""
}

Error Example​

{
"code": -1,
"msg": "Invalid parameters",
"data": ""
}