Skip to main content

Edit FAQ

Update one FAQ knowledge entry.

Request

POST https://apichat.twt.com/openapi/zhishi/edit_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
mcstringYesUpdated question title, 1 to 255 characters
nrstringYesUpdated answer content, 1 to 2000 characters

Request Example

{
"appid": "your-appid",
"timestamp": 1735689600,
"ranstr": "random-string",
"id": 1001,
"mc": "How do I reset my password?",
"nr": "Use the password reset link on the sign-in page."
}

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