Update
Update a QnA
Update QnA
PUT
https://{{account_id}}.acquire.io/api/v1/bot/qna/{{id}}
Update a QnA. The QnA id must be passed in to the endpoint as a path parameter.
Path Parameters
Name
Type
Description
id
integer
QnA ID
Headers
Name
Type
Description
Authorization
string
Bearer {{api_key}}
{
"data": {
"success": true,
"message": "Question Updated Successfully",
"updatedObject": {
"id": 3781,
"type": "suggested",
"subtype": "user_added",
"status": "active",
"language": "en",
"answerType": "random",
"actionEnabled": "active",
"wantFeedback": "active",
"allowRelatedQue": "active",
"relatedQueIds": "1",
"createdBy": 1,
"updatedBy": 1,
"dateCreated": "2021-03-18T07:13:02.000Z",
"dateUpdated": "2021-03-18T07:21:57.746Z",
"qnaMainQuestions": [
{
"id": 5777,
"question": "Test Question 1"
},
{
"id": 5778,
"question": "Test Question 2"
}
],
"qnaMainAnswers": [
{
"id": 4599,
"answer": "Test Answer 122",
"answerJson": null
},
{
"id": 4600,
"answer": "Test Answer 222",
"answerJson": null
}
],
"qnaGroup": {
"id": 1,
"title": "Group Title",
"description": "Group Description",
"isDefault": "no",
"askFeedback": "active",
"cascadeApplicable": "disabled",
"createdBy": 1,
"updatedBy": 1,
"dateCreated": "2020-05-26T07:56:04.000Z",
"dateUpdated": "2021-03-17T12:06:37.000Z"
}
}
}
}
Body(raw)
{
"type": "suggested",
"subtype": "user_added",
"answerType": "random",
"status": "active",
"language": "en",
"actionEnabled": "active",
"wantFeedback": "active",
"allowRelatedQue": "active",
"relatedQueIds": "1",
"qnaMainQuestions": [
{
"question": "Test Question 1"
},
{
"question": "Test Question 2"
}
],
"qnaMainAnswers": [
{
"answer": "Test Answer 122"
},
{
"answer": "Test Answer 222"
}
],
"qnaMainActions": []
}
Last updated