Update a Subscription.

POST /v1/Subscriptions/{Sid}

Subscription to send Event Types to a Sink

Update a Subscription.

Path parameters

  • Sid string Required

    A 34 character string that uniquely identifies this Subscription.

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

application/x-www-form-urlencoded

Body

  • Description string

    A human readable description for the Subscription.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

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

      The unique SID identifier of the Account.

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

    • sid string | null

      A 34 character string that uniquely identifies this Subscription.

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

    • date_created string(date-time) | null

      The date that this Subscription was created, given in ISO 8601 format.

    • date_updated string(date-time) | null

      The date that this Subscription was updated, given in ISO 8601 format.

    • description string | null

      A human readable description for the Subscription

    • sink_sid string | null

      The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.

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

    • url string(uri) | null

      The URL of this resource.

POST /v1/Subscriptions/{Sid}
curl \
 --request POST 'https://events.twilio.com/v1/Subscriptions/{Sid}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Description=Updated+description'
Request example
{"Description"=>"Updated description"}
Response examples (200)
{
  "sid": "DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "links": {
    "subscribed_events": "https://events.twilio.com/v1/Subscriptions/DFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SubscribedEvents"
  },
  "sink_sid": "DGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "description": "Updated description",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2020-07-30T20:01:33Z",
  "receive_events_from_subaccounts": false
}