Body
-
AclEnabled boolean
Whether token identities in the Service must be granted access to Sync objects by using the Permissions resource.
-
FriendlyName string
A string that you assign to describe the resource.
-
ReachabilityDebouncingEnabled boolean
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. -
ReachabilityDebouncingWindow integer
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
. -
ReachabilityWebhooksEnabled boolean
Whether the service instance should call
webhook_url
when client endpoints connect to Sync. The default isfalse
. -
WebhookUrl string(uri)
The URL we should call when Sync objects are manipulated.
-
WebhooksFromRestEnabled boolean
Whether the Service instance should call
webhook_url
when the REST API is used to update Sync objects. The default isfalse
.
curl \
-X POST https://sync.twilio.com/v1/Services \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'AclEnabled=true&FriendlyName=string&ReachabilityDebouncingEnabled=true&ReachabilityDebouncingWindow=42&ReachabilityWebhooksEnabled=true&WebhookUrl=https%3A%2F%2Fexample.com&WebhooksFromRestEnabled=true'
{
"AclEnabled": true,
"FriendlyName": "string",
"ReachabilityDebouncingEnabled": true,
"ReachabilityDebouncingWindow": 42,
"ReachabilityWebhooksEnabled": true,
"WebhookUrl": "https://example.com",
"WebhooksFromRestEnabled": true
}
{
"AclEnabled": true,
"FriendlyName": "string",
"ReachabilityDebouncingEnabled": true,
"ReachabilityDebouncingWindow": 42,
"ReachabilityWebhooksEnabled": true,
"WebhookUrl": "https://example.com",
"WebhooksFromRestEnabled": true
}
{
"account_sid": "string",
"acl_enabled": true,
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"friendly_name": "string",
"links": {},
"reachability_debouncing_enabled": true,
"reachability_debouncing_window": 42,
"reachability_webhooks_enabled": true,
"sid": "string",
"unique_name": "string",
"url": "https://example.com",
"webhook_url": "https://example.com",
"webhooks_from_rest_enabled": true
}
{
"account_sid": "string",
"acl_enabled": true,
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"friendly_name": "string",
"links": {},
"reachability_debouncing_enabled": true,
"reachability_debouncing_window": 42,
"reachability_webhooks_enabled": true,
"sid": "string",
"unique_name": "string",
"url": "https://example.com",
"webhook_url": "https://example.com",
"webhooks_from_rest_enabled": true
}