NAME

Twilio::Rest::Sync::V1::Service::SyncMap::SyncMapPermission - The SyncMapPermission resource

SYNOPSIS

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

for my $sync_map_permission ($client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions->read({}, 20)) {
  ...
}
my $sync_map_permission = $client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions($identity)->fetch;
$client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions($identity)->update($read, $write, $manage);
$client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions($identity)->delete;

DESCRIPTION

This file holds SyncMapPermissionList, SyncMapPermissionPage, SyncMapPermissionContext and SyncMapPermissionInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

SyncMapPermissionList

Returned by $client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions. See also Twilio::ListResource.

read

my @records = $client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions->read(\%options, $limit, $page_size);

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

stream

my $stream = $client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_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_maps($map_sid)->sync_map_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_maps($map_sid)->sync_map_permissions->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions->get_context($identity);

Returns a SyncMapPermissionContext, and makes no request.

SyncMapPermissionPage

A Twilio::Page of SyncMapPermissionInstance objects.

records_key

build_instance

Used by Twilio::Page.

SyncMapPermissionContext

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

fetch

my $sync_map_permission = $client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions($identity)->fetch;

Fetch a specific Sync Map Permission. Returns a SyncMapPermissionInstance.

update

my $sync_map_permission = $client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions($identity)->update($read, $write, $manage);

Update an identity's access to a specific Sync Map. Returns a SyncMapPermissionInstance.

The required values are:

$read

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

$write

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

$manage

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

delete

$client->sync->v1->services($service_sid)->sync_maps($map_sid)->sync_map_permissions($identity)->delete;

Delete a specific Sync Map Permission. Returns true.

SyncMapPermissionInstance

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 Map Permission resource.

identity

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

manage

Whether the identity can delete the Sync Map.

map_sid

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

read

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

service_sid

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

url

The absolute URL of the Sync Map Permission resource.

write

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

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.