NAME

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

SYNOPSIS

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

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

DESCRIPTION

This file holds CustomerProfilesEntityAssignmentsList, CustomerProfilesEntityAssignmentsPage, CustomerProfilesEntityAssignmentsContext and CustomerProfilesEntityAssignmentsInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

CustomerProfilesEntityAssignmentsList

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

create

my $customer_profiles_entity_assignments = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_entity_assignments->create($object_sid);

Create a new Assigned Item. Returns a CustomerProfilesEntityAssignmentsInstance.

The required values are:

$object_sid

The SID of an object bag that holds information of the different items.

read

my @records = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_entity_assignments->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:

object_type

A string to filter the results by (EndUserType or SupportingDocumentType) machine-name. This is useful when you want to retrieve the entity-assignment of a specific end-user or supporting document.

stream

my $stream = $client->trusthub->v1->customer_profiles($customer_profile_sid)->customer_profiles_entity_assignments->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_entity_assignments->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_entity_assignments->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_entity_assignments->get_context($sid);

Returns a CustomerProfilesEntityAssignmentsContext, and makes no request.

CustomerProfilesEntityAssignmentsPage

A Twilio::Page of CustomerProfilesEntityAssignmentsInstance objects.

records_key

build_instance

Used by Twilio::Page.

CustomerProfilesEntityAssignmentsContext

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

fetch

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

Fetch specific Assigned Item Instance. Returns a CustomerProfilesEntityAssignmentsInstance.

delete

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

Remove an Assignment Item Instance. Returns true.

CustomerProfilesEntityAssignmentsInstance

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.

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.

object_sid

The SID of an object bag that holds information of the different items.

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.