NAME
Twilio::Rest::FlexApi::V1::InsightsAssessmentsComment - The InsightsAssessmentsComment resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $insights_assessments_comment = $client->flex_api->v1->insights_assessments_comment->create($category_id, $category_name, $comment, $segment_id, $agent_id, $offset, \%options);
for my $insights_assessments_comment ($client->flex_api->v1->insights_assessments_comment->read({}, 20)) {
...
}
DESCRIPTION
This file holds InsightsAssessmentsCommentList, InsightsAssessmentsCommentPage and InsightsAssessmentsCommentInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
InsightsAssessmentsCommentList
Returned by $client->flex_api->v1->insights_assessments_comment. See also Twilio::ListResource.
create
my $insights_assessments_comment = $client->flex_api->v1->insights_assessments_comment->create($category_id, $category_name, $comment, $segment_id, $agent_id, $offset, \%options);
To create a comment assessment for a conversation. Returns a InsightsAssessmentsCommentInstance.
The required values are:
$category_id-
The ID of the category
$category_name-
The name of the category
$comment-
The Assessment comment.
$segment_id-
The id of the segment.
$agent_id-
The id of the agent.
$offset-
The offset
The options are:
-
The Authorization HTTP request header
read
my @records = $client->flex_api->v1->insights_assessments_comment->read(\%options, $limit, $page_size);
To create a comment assessment for a conversation. Returns the records as a list, fetching as many pages as it needs.
The options are:
agent_id-
The id of the agent.
-
The Authorization HTTP request header
segment_id-
The id of the segment.
stream
my $stream = $client->flex_api->v1->insights_assessments_comment->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->flex_api->v1->insights_assessments_comment->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->flex_api->v1->insights_assessments_comment->get_page($url);
Fetches the page at a URL given by Twilio.
InsightsAssessmentsCommentPage
A Twilio::Page of InsightsAssessmentsCommentInstance objects.
records_key
build_instance
Used by Twilio::Page.
InsightsAssessmentsCommentInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The SID of the Account that created the Flex Insights resource and owns this resource.
- agent_id
-
The id of the agent.
- assessment_sid
-
The SID of the assessment.
- comment
-
The comment added for assessment.
- offset
-
The offset
- report
-
The flag indicating if this assessment is part of report
- segment_id
-
The id of the segment.
- timestamp
-
The timestamp when the record is inserted
- url
-
No description in the specification.
- user_email
-
The email id of the user.
- user_name
-
The name of the user.
- weight
-
The weightage given to this comment
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.