To create a comment assessment for a conversation

POST /v1/Insights/QualityManagement/Assessments/Comments

To create a comment assessment for a conversation

Headers

  • Authorization string

    The Authorization HTTP request header

application/x-www-form-urlencoded

Body

  • CategoryId string Required

    The ID of the category

  • CategoryName string Required

    The name of the category

  • Comment string Required

    The Assessment comment.

  • SegmentId string Required

    The id of the segment.

  • AgentId string Required

    The id of the agent.

  • Offset number Required

    The offset

Responses

  • 201 application/json

    Created

    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}$.

    • 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}$.

    • comment

      The comment added for assessment.

    • offset number | null

      The offset

    • 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

      The id of the segment.

    • user_name string | null

      The name of the user.

    • user_email string | null

      The email id of the user.

    • timestamp number | null

      The timestamp when the record is inserted

    • url string(uri) | null
POST /v1/Insights/QualityManagement/Assessments/Comments
curl \
 --request POST 'https://flex-api.twilio.com/v1/Insights/QualityManagement/Assessments/Comments' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --header "Authorization: string" \
 --data 'Offset=6.985619&AgentId=583fcaa6-a4ef-5447-9077-900421e37a61&Comment=log0zu0268&SegmentId=dbdf1f7b-c776-5e78-9676-98a397fb3cdc&CategoryId=4b4e78e4-4f05-49e2-bf52-0973c5cde418&CategoryName=Good+for+Training'
Request example
{"Offset"=>"6.985619", "AgentId"=>"583fcaa6-a4ef-5447-9077-900421e37a61", "Comment"=>"log0zu0268", "SegmentId"=>"dbdf1f7b-c776-5e78-9676-98a397fb3cdc", "CategoryId"=>"4b4e78e4-4f05-49e2-bf52-0973c5cde418", "CategoryName"=>"Good for Training"}
Response examples (201)
{
  "url": "https://flex-api.twilio.com/v1/Insights/QualityManagement/Assessments/Comments/FMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "offset": "0.0",
  "report": true,
  "weight": "1",
  "comment": {
    "comment": "log0zu0268",
    "category": {
      "name": "Good for Training",
      "category_id": "c9ba34ca-7174-4dcd-ab3e-91fbb1932f1e"
    }
  },
  "agent_id": "5d80ee80-7608-55df-b2b2-5ab5608b9831",
  "timestamp": "1657329694199",
  "user_name": "Linda Houghton",
  "segment_id": "0105be7a-9b87-51f1-8df8-aa74ddb9c4a7",
  "user_email": "linda.houghton@vacasa.com",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "assessment_sid": "FMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}