Path parameters
-
The Twilio-provided string that uniquely identifies the Service resource to update.
Body
-
AlexaSkillId string
Deprecated.
-
ApnCredentialSid string
The SID of the Credential to use for APN Bindings.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^CR[0-9a-fA-F]{32}$
. -
Deprecated.
-
The protocol version to use for sending APNS notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
-
The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
-
The protocol version to use for sending GCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
-
DeliveryCallbackEnabled boolean
Callback configuration that enables delivery callbacks, default false
-
DeliveryCallbackUrl string
URL to send delivery status callback.
-
FacebookMessengerPageId string
Deprecated.
-
FcmCredentialSid string
The SID of the Credential to use for FCM Bindings.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^CR[0-9a-fA-F]{32}$
. -
FriendlyName string
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
-
GcmCredentialSid string
The SID of the Credential to use for GCM Bindings.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^CR[0-9a-fA-F]{32}$
. -
LogEnabled boolean
Whether to log notifications. Can be:
true
orfalse
and the default istrue
. -
MessagingServiceSid string
The SID of the Messaging Service to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
Minimum length is
34
, maximum length is34
. Format should match the following pattern:^MG[0-9a-fA-F]{32}$
.
curl \
-X POST https://notify.twilio.com/v1/Services/{Sid} \
--user "username:password" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'AlexaSkillId=string&ApnCredentialSid=string&DefaultAlexaNotificationProtocolVersion=string&DefaultApnNotificationProtocolVersion=string&DefaultFcmNotificationProtocolVersion=string&DefaultGcmNotificationProtocolVersion=string&DeliveryCallbackEnabled=true&DeliveryCallbackUrl=string&FacebookMessengerPageId=string&FcmCredentialSid=string&FriendlyName=string&GcmCredentialSid=string&LogEnabled=true&MessagingServiceSid=string'
{
"AlexaSkillId": "string",
"ApnCredentialSid": "string",
"DefaultAlexaNotificationProtocolVersion": "string",
"DefaultApnNotificationProtocolVersion": "string",
"DefaultFcmNotificationProtocolVersion": "string",
"DefaultGcmNotificationProtocolVersion": "string",
"DeliveryCallbackEnabled": true,
"DeliveryCallbackUrl": "string",
"FacebookMessengerPageId": "string",
"FcmCredentialSid": "string",
"FriendlyName": "string",
"GcmCredentialSid": "string",
"LogEnabled": true,
"MessagingServiceSid": "string"
}
{
"AlexaSkillId": "string",
"ApnCredentialSid": "string",
"DefaultAlexaNotificationProtocolVersion": "string",
"DefaultApnNotificationProtocolVersion": "string",
"DefaultFcmNotificationProtocolVersion": "string",
"DefaultGcmNotificationProtocolVersion": "string",
"DeliveryCallbackEnabled": true,
"DeliveryCallbackUrl": "string",
"FacebookMessengerPageId": "string",
"FcmCredentialSid": "string",
"FriendlyName": "string",
"GcmCredentialSid": "string",
"LogEnabled": true,
"MessagingServiceSid": "string"
}
{
"account_sid": "string",
"alexa_skill_id": "string",
"apn_credential_sid": "string",
"date_created": "2023-05-04T09:42:00+00:00",
"date_updated": "2023-05-04T09:42:00+00:00",
"default_alexa_notification_protocol_version": "string",
"default_apn_notification_protocol_version": "string",
"default_fcm_notification_protocol_version": "string",
"default_gcm_notification_protocol_version": "string",
"delivery_callback_enabled": true,
"delivery_callback_url": "string",
"facebook_messenger_page_id": "string",
"fcm_credential_sid": "string",
"friendly_name": "string",
"gcm_credential_sid": "string",
"links": {},
"log_enabled": true,
"messaging_service_sid": "string",
"sid": "string",
"url": "https://example.com"
}
{
"account_sid": "string",
"alexa_skill_id": "string",
"apn_credential_sid": "string",
"date_created": "2024-05-04T09:42:00+00:00",
"date_updated": "2024-05-04T09:42:00+00:00",
"default_alexa_notification_protocol_version": "string",
"default_apn_notification_protocol_version": "string",
"default_fcm_notification_protocol_version": "string",
"default_gcm_notification_protocol_version": "string",
"delivery_callback_enabled": true,
"delivery_callback_url": "string",
"facebook_messenger_page_id": "string",
"fcm_credential_sid": "string",
"friendly_name": "string",
"gcm_credential_sid": "string",
"links": {},
"log_enabled": true,
"messaging_service_sid": "string",
"sid": "string",
"url": "https://example.com"
}