修改问答
POST
https://qyapi.weixin.qq.com/cgi-bin/kf/knowledge/mod_intent
question
/similar_questions
/answers
这三部分可以按需更新,但更新的每一部分是覆盖写,需要传完整的字段。请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://qyapi.weixin.qq.com/cgi-bin/kf/knowledge/mod_intent' \
--header 'Content-Type: application/json' \
--data-raw '{
"intent_id": "INTENT_ID",
"question": {
"text": {
"content": "主问题"
}
},
"similar_questions": {
"items": [
{
"text": {
"content": "相似问题1"
}
},
{
"text": {
"content": "相似问题2"
}
}
]
},
"answers": [
{
"text": {
"content": "问题的回复"
},
"attachments": [
{
"msgtype": "image",
"image": {
"media_id": "MEDIA_ID"
}
}
]
}
]
}'
响应示例响应示例
{
"errcode": 0,
"errmsg": "ok"
}
请求参数
Query 参数
access_token
string
可选
示例值:
ACCESS_TOKEN
Body 参数application/json
返回响应
修改于 2022-12-02 02:09:32