To update the question

POST /v1/Insights/QualityManagement/Questions/{QuestionSid}

To update the question

Headers

  • Authorization string

    The Authorization HTTP request header

Path parameters

  • QuestionSid string Required

    The SID of the question

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^GE[0-9a-fA-F]{32}$.

application/x-www-form-urlencoded

Body

  • AllowNa boolean Required

    The flag to enable for disable NA for answer.

  • CategorySid string

    The SID of the category

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^FY[0-9a-fA-F]{32}$.

  • Question string

    The question.

  • Description string

    The description for the question.

  • AnswerSetId string

    The answer_set for the question.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the Flex Insights resource and owns this resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • question_sid string | null

      The SID of the question

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^GE[0-9a-fA-F]{32}$.

    • question string | null

      The question.

    • description string | null

      The description for the question.

    • category

      The Category for the question.

    • answer_set_id string | null

      The answer_set for the question.

    • allow_na boolean | null

      The flag to enable for disable NA for answer.

    • usage integer

      Integer value that tells a particular question is used by how many questionnaires

      Default value is 0.

    • answer_set

      Set of answers for the question

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