To create a question for a Category
POST
/v1/Insights/QualityManagement/Questions
curl \
--request POST 'https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--header "Authorization: string" \
--data 'CategorySid=FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&Question=What+is+the+total+time&Description=time+spent&AnswerSetId=a6a8a54f-5305-4aec-b92c-a6e429932f58&AllowNa=false'
Request example
{"CategorySid" => "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "Question" => "What is the total time", "Description" => "time spent", "AnswerSetId" => "a6a8a54f-5305-4aec-b92c-a6e429932f58", "AllowNa" => false}
Response examples (201)
{
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"question": "What is the total time",
"question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"description": "time spent",
"category": {
"category_name": "test cat",
"category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"answer_set_id": "a6a8a54f-5305-4aec-b92c-a6e429932f58",
"allow_na": false,
"usage": 0,
"answer_set": {
"sort": 0,
"name": "Yes, No",
"answers": [
{
"sort": 0,
"score": 100,
"description": "Yes.",
"name": "Yes",
"id": "4e34f701-8206-4670-b376-c9fe26bb3ca3"
},
{
"sort": 1,
"score": 0,
"description": "No or a very poor.",
"name": "No",
"id": "5e926651-fa5d-4aba-86e1-8440bb8faa6c"
}
],
"category_id": "1a8cac56-826c-4f85-ac14-9104811cf184",
"type": "select",
"id": "a6a8a54f-5305-4aec-b92c-a6e429932f58"
},
"url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Questions/GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}