NAME

Twilio::Rest::FlexApi::V1::InsightsQuestionnairesCategory - The InsightsQuestionnairesCategory resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $insights_questionnaires_category = $client->flex_api->v1->insights_questionnaires_category->create($name, \%options);
for my $insights_questionnaires_category ($client->flex_api->v1->insights_questionnaires_category->read({}, 20)) {
  ...
}
$client->flex_api->v1->insights_questionnaires_category($category_sid)->update($name, \%options);
$client->flex_api->v1->insights_questionnaires_category($category_sid)->delete;

DESCRIPTION

This file holds InsightsQuestionnairesCategoryList, InsightsQuestionnairesCategoryPage, InsightsQuestionnairesCategoryContext and InsightsQuestionnairesCategoryInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

InsightsQuestionnairesCategoryList

Returned by $client->flex_api->v1->insights_questionnaires_category. See also Twilio::ListResource.

create

my $insights_questionnaires_category = $client->flex_api->v1->insights_questionnaires_category->create($name, \%options);

To create a category for Questions. Returns a InsightsQuestionnairesCategoryInstance.

The required values are:

$name

The name of this category.

The options are:

authorization

The Authorization HTTP request header

read

my @records = $client->flex_api->v1->insights_questionnaires_category->read(\%options, $limit, $page_size);

To get all the categories. Returns the records as a list, fetching as many pages as it needs.

The options are:

authorization

The Authorization HTTP request header

stream

my $stream = $client->flex_api->v1->insights_questionnaires_category->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->flex_api->v1->insights_questionnaires_category->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_questionnaires_category->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->flex_api->v1->insights_questionnaires_category->get_context($category_sid);

Returns a InsightsQuestionnairesCategoryContext, and makes no request.

InsightsQuestionnairesCategoryPage

A Twilio::Page of InsightsQuestionnairesCategoryInstance objects.

records_key

build_instance

Used by Twilio::Page.

InsightsQuestionnairesCategoryContext

Returned by $client->flex_api->v1->insights_questionnaires_category($category_sid). It makes no request until one of these methods is called.

update

my $insights_questionnaires_category = $client->flex_api->v1->insights_questionnaires_category($category_sid)->update($name, \%options);

To update the category for Questions. Returns a InsightsQuestionnairesCategoryInstance.

The required values are:

$name

The name of this category.

The options are:

authorization

The Authorization HTTP request header

delete

$client->flex_api->v1->insights_questionnaires_category($category_sid)->delete(\%options);

Returns true.

The options are:

authorization

The Authorization HTTP request header

InsightsQuestionnairesCategoryInstance

See also Twilio::InstanceResource.

It has update and delete, which work as they do on the context.

Its fields are:

account_sid

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

category_sid

The SID of the category

name

The name of this category.

url

No description in the specification.

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.