Update Service
Authorization
accountSid_authToken In: header
Path Parameters
The Twilio-provided string that uniquely identifies the Service resource to update.
^IS[0-9a-fA-F]{32}$34 <= length <= 34Request Body
application/x-www-form-urlencoded
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
The SID of the Credential to use for APN Bindings.
^CR[0-9a-fA-F]{32}$34 <= length <= 34The SID of the Credential to use for GCM Bindings.
^CR[0-9a-fA-F]{32}$34 <= length <= 34The SID of the Messaging Service to use for SMS Bindings. This parameter must be set in order to send SMS notifications.
^MG[0-9a-fA-F]{32}$34 <= length <= 34Deprecated.
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 GCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
The SID of the Credential to use for FCM Bindings.
^CR[0-9a-fA-F]{32}$34 <= length <= 34The protocol version to use for sending FCM notifications. Can be overridden on a Binding by Binding basis when creating a Binding resource.
Whether to log notifications. Can be: true or false and the default is true.
Deprecated.
Deprecated.
URL to send delivery status callback.
Callback configuration that enables delivery callbacks, default false
Response Body
application/json
curl -X POST "https://example.com/v1/Services/stringstringstringstringstringstri" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d 'FriendlyName=friendly_name&ApnCredentialSid=CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&GcmCredentialSid=ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&MessagingServiceSid=MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&FacebookMessengerPageId=4&DefaultApnNotificationProtocolVersion=3&DefaultGcmNotificationProtocolVersion=3&DefaultFcmNotificationProtocolVersion=3&LogEnabled=True&Type=S&DeliveryCallbackUrl=Hello&DeliveryCallbackEnabled=True'{ "sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "friendly_name": "733c7f0f-6541-42ec-84ce-e2ae1cac588c", "date_created": "2016-03-09T20:22:31Z", "date_updated": "2016-03-09T20:22:31Z", "apn_credential_sid": null, "gcm_credential_sid": null, "fcm_credential_sid": null, "default_apn_notification_protocol_version": "3", "default_gcm_notification_protocol_version": "3", "default_fcm_notification_protocol_version": "3", "default_alexa_notification_protocol_version": "3", "messaging_service_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "alexa_skill_id": null, "facebook_messenger_page_id": "4", "log_enabled": true, "delivery_callback_url": "Hello", "delivery_callback_enabled": true, "url": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "links": { "bindings": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings", "notifications": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Notifications", "segments": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Segments", "users": "https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Users" }}