NAME

Twilio::Rest::Trusthub::V1::CustomerProfiles::CustomerProfilesChannelEndpointAssignment - The CustomerProfilesChannelEndpointAssignment resource

SYNOPSIS

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

my $customer_profiles_channel_endpoint_assignment = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->create($channel_endpoint_type, $channel_endpoint_sid);
for my $customer_profiles_channel_endpoint_assignment ($client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->read({}, 20)) {
  ...
}
my $customer_profiles_channel_endpoint_assignment = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment($sid)->fetch;
$client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment($sid)->delete;

DESCRIPTION

This file holds CustomerProfilesChannelEndpointAssignmentList, CustomerProfilesChannelEndpointAssignmentPage, CustomerProfilesChannelEndpointAssignmentContext and CustomerProfilesChannelEndpointAssignmentInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

CustomerProfilesChannelEndpointAssignmentList

Returned by $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment. See also Twilio::ListResource.

create

my $customer_profiles_channel_endpoint_assignment = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->create($channel_endpoint_type, $channel_endpoint_sid);

Create a new Assigned Item. Returns a CustomerProfilesChannelEndpointAssignmentInstance.

The required values are:

$channel_endpoint_type

The type of channel endpoint. eg: phone-number

$channel_endpoint_sid

The SID of an channel endpoint

read

my @records = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->read(\%options, $limit, $page_size);

Retrieve a list of all Assigned Items for an account. Returns the records as a list, fetching as many pages as it needs.

The options are:

channel_endpoint_sid

The SID of an channel endpoint

channel_endpoint_sids

comma separated list of channel endpoint sids

stream

my $stream = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->stream(\%options, $limit, $page_size);

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

page

my $page = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment->get_context($sid);

Returns a CustomerProfilesChannelEndpointAssignmentContext, and makes no request.

CustomerProfilesChannelEndpointAssignmentPage

A Twilio::Page of CustomerProfilesChannelEndpointAssignmentInstance objects.

records_key

build_instance

Used by Twilio::Page.

CustomerProfilesChannelEndpointAssignmentContext

Returned by $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment($sid). It makes no request until one of these methods is called.

fetch

my $customer_profiles_channel_endpoint_assignment = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment($sid)->fetch;

Fetch specific Assigned Item Instance. Returns a CustomerProfilesChannelEndpointAssignmentInstance.

delete

$client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_channel_endpoint_assignment($sid)->delete;

Remove an Assignment Item Instance. Returns true.

CustomerProfilesChannelEndpointAssignmentInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Item Assignment resource.

channel_endpoint_sid

The SID of an channel endpoint

channel_endpoint_type

The type of channel endpoint. eg: phone-number

customer_profile_sid

The unique string that we created to identify the CustomerProfile resource.

date_created

The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

sid

The unique string that we created to identify the Item Assignment resource.

url

The absolute URL of the Identity resource.

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.