Path parameters
-
The SID of the Sync Service to create the Sync Map in.
Body
-
An application-defined string that uniquely identifies the resource. It can be used as an alternative to the
sid
in the URL path to address the resource. -
An alias for
collection_ttl
. If both parameters are provided, this value is ignored. -
How long, in seconds, before the Sync Map expires (time-to-live) and is deleted.
POST
/v1/Services/{ServiceSid}/Maps
curl \
--request POST 'https://sync.twilio.com/v1/Services/{ServiceSid}/Maps' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'Ttl=3600&UniqueName=unique_name'
Request example
{"Ttl"=>3600, "UniqueName"=>"unique_name"}
Response examples (201)
{
"sid": "MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"items": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Items",
"permissions": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps/MPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Permissions"
},
"revision": "revision",
"created_by": "created_by",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"service_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"unique_name": "unique_name",
"date_created": "2015-07-30T20:00:00Z",
"date_expires": "2015-07-30T21:00:00Z",
"date_updated": "2015-07-30T20:00:00Z"
}