NAME

Twilio::Rest::Sync::V1::Service::SyncList::SyncListPermission - The SyncListPermission resource

SYNOPSIS

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

for my $sync_list_permission ($client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions->read({}, 20)) {
  ...
}
my $sync_list_permission = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions($identity)->fetch;
$client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions($identity)->update($read, $write, $manage);
$client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions($identity)->delete;

DESCRIPTION

Permissions for Sync list items

This file holds SyncListPermissionList, SyncListPermissionPage, SyncListPermissionContext and SyncListPermissionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SyncListPermissionList

Returned by $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions. See also Twilio::ListResource.

read

my @records = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions->read(\%options, $limit, $page_size);

Retrieve a list of all Permissions applying to a Sync List. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions->stream(\%options, $limit, $page_size);

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

page

my $page = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions->get_context($identity);

Returns a SyncListPermissionContext, and makes no request.

SyncListPermissionPage

A Twilio::Page of SyncListPermissionInstance objects.

records_key

build_instance

Used by Twilio::Page.

SyncListPermissionContext

Returned by $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions($identity). It makes no request until one of these methods is called.

fetch

my $sync_list_permission = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions($identity)->fetch;

Fetch a specific Sync List Permission. Returns a SyncListPermissionInstance.

update

my $sync_list_permission = $client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions($identity)->update($read, $write, $manage);

Update an identity's access to a specific Sync List. Returns a SyncListPermissionInstance.

The required values are:

$read

Whether the identity can read the Sync List and its Items. Default value is false.

$write

Whether the identity can create, update, and delete Items in the Sync List. Default value is false.

$manage

Whether the identity can delete the Sync List. Default value is false.

delete

$client->sync->v1->services($service_sid)->sync_lists($list_sid)->sync_list_permissions($identity)->delete;

Delete a specific Sync List Permission. Returns true.

SyncListPermissionInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

The SID of the Account that created the Sync List Permission resource.

identity

The application-defined string that uniquely identifies the resource's User within the Service to an FPA token.

list_sid

The SID of the Sync List to which the Permission applies.

manage

Whether the identity can delete the Sync List.

read

Whether the identity can read the Sync List and its Items.

service_sid

The SID of the Sync Service the resource is associated with.

url

The absolute URL of the Sync List Permission resource.

write

Whether the identity can create, update, and delete Items in the Sync List.

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.