Sample Request
Bot Builder API request:
curl -X GET \
'https://{{host}}/api/public/faqs/bulkupdates'\
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json' \
{
"payload": [
{
"query": {
"language": "en",
"faqPath":"Covid Cases",
"primaryQuestion":"Where can we test?"
},
"updateSet": {
"primaryResponse": {
"text": "Cases are 18000 primary",
"type": "basic",
"channel": "default"
}
}
}
]
}
Admin Console API request:
curl -X GET \
'https://{{host}}/api/public/bot/{{bot_id}}/faqs/bulkupdates' \
-H 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
-H 'content-type: application/json' \
{
payload: [
{
query: {
language: "en",
botId : “st-xxxx”,
referenceId: "referenceIdofFAQ",
faqPath: "node1-node2-node3",
primaryQuestion: "primaryquestion",
},
updateSet: {
"primaryResponse": {
"text": "Will I get a confirmation of my registration?",
"type": "basic",
"channel": "default"
},
extendedResponses: [
{
"text": "ext1"
},
{
"text": "ext2”
}
],
alternateResponses: [
{
"text": "alt1",
"type": "basic",
"channel": "default"
},
{
"text": "alt2",
"type": "basic",
"channel": "default"
}
],
faqStatus: true
}
},
{
query: {
language: "en",
botId : “st-xxxx”,
referenceId: "referenceIdofFAQ",
faqPath: "node1-node2-node3",
primaryQuestion: "primaryquestion",
},
updateSet: {
"primaryResponse": {
"text": "Will I get a confirmation of my registration?",
"type": "basic",
"channel": "default"
},
extendedResponses: [
{
"text": "ext1"
},
{
"text": "ext2"
}
],
alternateResponses: [
{
"text": "alt1",
"type": "basic",
"channel": "default"
},
{
"text": "alt2",
"type": "basic",
"channel": "default"
}
],
faqStatus: true
}
}
]
}