Create a new Subscribed Event type for the subscription
Event subscribed to in the parent subscription
Create a new Subscribed Event type for the subscription
Path parameters
-
The unique SID identifier of the Subscription.
Body
-
SchemaVersion integer
The schema version that the subscription should use.
-
Type of event being subscribed to.
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"
}