Create a new Subscribed Event type for the subscription

POST /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents

Event subscribed to in the parent subscription

Create a new Subscribed Event type for the subscription

Path parameters

Body

  • The schema version that the subscription should use.

  • Type string Required

    Type of event being subscribed to.

Responses

  • Created

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

      Account SID.

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

    • schema_version integer | null

      The schema version that the subscription should use.

    • subscription_sid string | null

      Subscription SID.

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

    • type string | null

      Type of event being subscribed to.

    • url string(uri) | null

      The URL of this resource.

POST /v1/Subscriptions/{SubscriptionSid}/SubscribedEvents
curl \
 -X POST https://events.twilio.com/v1/Subscriptions/{SubscriptionSid}/SubscribedEvents \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'SchemaVersion=42&Type=string'
Request example
{
  "SchemaVersion": 42,
  "Type": "string"
}
Request examples
{
  "SchemaVersion": 42,
  "Type": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "schema_version": 42,
  "subscription_sid": "string",
  "type": "string",
  "url": "https://example.com"
}
Response examples (201)
{
  "account_sid": "string",
  "schema_version": 42,
  "subscription_sid": "string",
  "type": "string",
  "url": "https://example.com"
}