Update service

POST /v1/Services/{Sid}

TODO: Resource-level docs

Path parameters

  • Sid string Required

    The Twilio-provided string that uniquely identifies the Service resource to update.

application/x-www-form-urlencoded

Body

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account that created the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • alexa_skill_id string | null

      Deprecated

    • apn_credential_sid string | null

      The SID of the Credential to use for APN Bindings

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CR[0-9a-fA-F]{32}$.

    • date_created string(date-time) | null

      The RFC 2822 date and time in GMT when the resource was created

    • date_updated string(date-time) | null

      The RFC 2822 date and time in GMT when the resource was last updated

    • Deprecated

    • The protocol version to use for sending APNS notifications

    • The protocol version to use for sending FCM notifications

    • The protocol version to use for sending GCM notifications

    • Enable delivery callbacks

    • Webhook URL

    • Deprecated

    • fcm_credential_sid string | null

      The SID of the Credential to use for FCM Bindings

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CR[0-9a-fA-F]{32}$.

    • friendly_name string | null

      The string that you assigned to describe the resource

    • gcm_credential_sid string | null

      The SID of the Credential to use for GCM Bindings

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^CR[0-9a-fA-F]{32}$.

    • log_enabled boolean | null

      Whether to log notifications

    • The SID of the Messaging Service to use for SMS Bindings

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^MG[0-9a-fA-F]{32}$.

    • sid string | null

      The unique string that identifies the resource

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^IS[0-9a-fA-F]{32}$.

    • url string(uri) | null

      The absolute URL of the Service resource

POST /v1/Services/{Sid}
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'
Request example
{
  "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"
}
Response examples (200)
{
  "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"
}