NAME
Twilio::Rest::Sync::V1::Service::SyncMap - The SyncMap resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $sync_map = $client->sync->v1->services($service_sid)->sync_maps->create(\%options);
for my $sync_map ($client->sync->v1->services($service_sid)->sync_maps->read({}, 20)) {
...
}
my $sync_map = $client->sync->v1->services($service_sid)->sync_maps($sid)->fetch;
$client->sync->v1->services($service_sid)->sync_maps($sid)->update(\%options);
$client->sync->v1->services($service_sid)->sync_maps($sid)->delete;
DESCRIPTION
Sync map objects
This file holds SyncMapList, SyncMapPage, SyncMapContext and SyncMapInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
SyncMapList
Returned by $client->sync->v1->services($service_sid)->sync_maps. See also Twilio::ListResource.
create
my $sync_map = $client->sync->v1->services($service_sid)->sync_maps->create(\%options);
Returns a SyncMapInstance.
The options are:
collection_ttl-
How long, in seconds, before the Sync Map expires (time-to-live) and is deleted.
ttl-
An alias for
collection_ttl. If both parameters are provided, this value is ignored. unique_name-
An application-defined string that uniquely identifies the resource. It can be used as an alternative to the
sidin the URL path to address the resource.
read
my @records = $client->sync->v1->services($service_sid)->sync_maps->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->sync->v1->services($service_sid)->sync_maps->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->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->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->sync->v1->services($service_sid)->sync_maps->get_context($sid);
Returns a SyncMapContext, and makes no request.
SyncMapPage
A Twilio::Page of SyncMapInstance objects.
records_key
build_instance
Used by Twilio::Page.
SyncMapContext
Returned by $client->sync->v1->services($service_sid)->sync_maps($sid). It makes no request until one of these methods is called.
fetch
my $sync_map = $client->sync->v1->services($service_sid)->sync_maps($sid)->fetch;
Returns a SyncMapInstance.
update
my $sync_map = $client->sync->v1->services($service_sid)->sync_maps($sid)->update(\%options);
Returns a SyncMapInstance.
The options are:
collection_ttl-
How long, in seconds, before the Sync Map expires (time-to-live) and is deleted.
ttl-
An alias for
collection_ttl. If both parameters are provided, this value is ignored.
delete
$client->sync->v1->services($service_sid)->sync_maps($sid)->delete;
Returns true.
sync_map_items
my $list = $object->sync_map_items;
my $context = $object->sync_map_items($key);
See Twilio::Rest::Sync::V1::Service::SyncMap::SyncMapItem.
sync_map_permissions
my $list = $object->sync_map_permissions;
my $context = $object->sync_map_permissions($identity);
See Twilio::Rest::Sync::V1::Service::SyncMap::SyncMapPermission.
SyncMapInstance
See also Twilio::InstanceResource.
It has fetch, update, delete, sync_map_items and sync_map_permissions, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Sync Map resource.
- created_by
-
The identity of the Sync Map's creator. If the Sync Map is created from the client SDK, the value matches the Access Token's
identityfield. If the Sync Map was created from the REST API, the value issystem. - 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.
- date_expires
-
The date and time in GMT when the Sync Map expires and will be deleted, specified in ISO 8601 format. If the Sync Map does not expire, this value is
null. The Sync Map might not be deleted immediately after it expires. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize. - date_updated
-
The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- links
-
The URLs of the Sync Map's nested resources.
- revision
-
The current revision of the Sync Map, represented as a string.
- service_sid
-
The SID of the Sync Service the resource is associated with.
- sid
-
The unique string that we created to identify the Sync Map resource.
- unique_name
-
An application-defined string that uniquely identifies the resource. It can be used in place of the resource's
sidin the URL to address the resource. - url
-
The absolute URL of the Sync Map 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.