Body
-
A string that you assign to describe the resource.
-
The URL we should call when Sync objects are manipulated.
-
Whether the service instance should call
webhook_url
when client endpoints connect to Sync. The default isfalse
. -
Whether token identities in the Service must be granted access to Sync objects by using the Permissions resource.
-
Whether every
endpoint_disconnected
event should occur after a configurable delay. The default isfalse
, where theendpoint_disconnected
event occurs immediately after disconnection. Whentrue
, intervening reconnections can prevent theendpoint_disconnected
event. -
The reachability event delay in milliseconds if
reachability_debouncing_enabled
=true
. Must be between 1,000 and 30,000 and defaults to 5,000. This is the number of milliseconds after the last running client disconnects, and a Sync identity is declared offline, before thewebhook_url
is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call towebhook_url
. -
Whether the Service instance should call
webhook_url
when the REST API is used to update Sync objects. The default isfalse
.
curl \
--request POST 'https://sync.twilio.com/v1/Services' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'AclEnabled=true&WebhookUrl=http%3A%2F%2Fwww.example.com&FriendlyName=friendly_name&ReachabilityDebouncingWindow=5000'
{"AclEnabled"=>true, "WebhookUrl"=>"http://www.example.com", "FriendlyName"=>"friendly_name", "ReachabilityDebouncingWindow"=>5000}
{
"sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"links": {
"maps": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Maps",
"lists": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Lists",
"streams": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Streams",
"documents": "https://sync.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Documents"
},
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"acl_enabled": true,
"unique_name": "unique_name",
"webhook_url": "http://www.example.com",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"friendly_name": "friendly_name",
"webhooks_from_rest_enabled": false,
"reachability_webhooks_enabled": false,
"reachability_debouncing_window": 5000,
"reachability_debouncing_enabled": false
}