Update a specific Assessment assessed earlier

POST /v1/Insights/QualityManagement/Assessments/{AssessmentSid}

Update a specific Assessment assessed earlier

Headers

  • Authorization string

    The Authorization HTTP request header

Path parameters

  • AssessmentSid string Required

    The SID of the assessment to be modified

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

application/x-www-form-urlencoded

Body

  • Offset number Required

    The offset of the conversation

  • AnswerText string Required

    The answer text selected by user

  • AnswerId string Required

    The id of the answer selected by user

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 unique SID identifier of the Account.

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

    • assessment_sid string | null

      The SID of the assessment

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

    • offset number | null

      Offset of the conversation

    • report boolean | null

      The flag indicating if this assessment is part of report

    • weight number | null

      The weightage given to this comment

    • agent_id string | null

      The id of the Agent

    • segment_id string | null

      Segment Id of conversation

    • user_name string | null

      The name of the user.

    • user_email string | null

      The email id of the user.

    • answer_text string | null

      The answer text selected by user

    • answer_id string | null

      The id of the answer selected by user

    • assessment

      Assessment Details associated with an assessment

    • timestamp number | null
    • url string(uri) | null
POST /v1/Insights/QualityManagement/Assessments/{AssessmentSid}
curl \
 --request POST 'https://flex-api.twilio.com/v1/Insights/QualityManagement/Assessments/{AssessmentSid}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --header "Authorization: string" \
 --data 'Offset=6.985619&AnswerId=ed8697d3-558d-46c3-9b73-cd21cd93cbb3&AnswerText=Fair'
Request example
{"Offset"=>"6.985619", "AnswerId"=>"ed8697d3-558d-46c3-9b73-cd21cd93cbb3", "AnswerText"=>"Fair"}
Response examples (200)
{
  "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Assessments/FMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "offset": "0.0",
  "report": true,
  "weight": "1",
  "agent_id": "5d80ee80-7608-55df-b2b2-5ab5608b9831",
  "answer_id": "ed8697d3-558d-46c3-9b73-cd21cd93cbb3",
  "timestamp": "1657329694199",
  "user_name": "Supervisor",
  "assessment": {
    "questionnaire": {
      "name": "Customer Experience",
      "question": {
        "name": "Active listening",
        "category": {
          "name": "Good for Training",
          "category_sid": "FYaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
        },
        "question_sid": "GEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
      },
      "questionnaire_sid": "GMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    }
  },
  "segment_id": "0105be7a-9b87-51f1-8df8-aa74ddb9c4a7",
  "user_email": "supervisor@example.com",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "answer_text": "Fair",
  "assessment_sid": "FMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}