Update a specific Assessment assessed earlier
Update a specific Assessment assessed earlier
Path parameters
-
The SID of the assessment to be modified
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^FM[0-9a-fA-F]{32}$
.
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"
}