Twilio\Rest\Sync\V1\ServiceOptions::create

Signature

public function create([string $friendlyName = Values::NONE, [string $webhookUrl = Values::NONE, [bool $reachabilityWebhooksEnabled = Values::BOOL_NONE, [bool $aclEnabled = Values::BOOL_NONE, [bool $reachabilityDebouncingEnabled = Values::BOOL_NONE, [int $reachabilityDebouncingWindow = Values::INT_NONE, [bool $webhooksFromRestEnabled = Values::BOOL_NONE]]]]]]] )

Parameters

$friendlyName — string
A string that you assign to describe the resource.
$webhookUrl — string
The URL we should call when Sync objects are manipulated.
$reachabilityWebhooksEnabled — object
Whether the service instance should call `webhook_url` when client endpoints connect to Sync. The default is `false`.


$aclEnabled — object
Whether token identities in the Service must be granted access to Sync objects by using the [Permissions](https://www.twilio.com/docs/sync/api/sync-permissions) resource.


$reachabilityDebouncingEnabled — object
Whether every `endpoint_disconnected` event should occur after a configurable delay. The default is `false`, where the `endpoint_disconnected` event occurs immediately after disconnection. When `true`, intervening reconnections can prevent the `endpoint_disconnected` event.


$reachabilityDebouncingWindow — int
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 the `webhook_url` is called if all endpoints remain offline. A reconnection from the same identity by any endpoint during this interval prevents the call to `webhook_url`.
$webhooksFromRestEnabled — object
Whether the Service instance should call `webhook_url` when the REST API is used to update Sync objects. The default is `false`.


Returns

CreateServiceOptions
Options builder