Actions30
- Attachment Actions
- Chat Actions
- Chat Message Actions
- Phone Number Actions
- Webhook Subscription Actions
Webhook Subscription → Update
AI-generatedSummary
Update a webhook subscription's URL, events, active status, and phone-number filter. The updated subscription resource is returned.
Inputs
- webhookSubscriptionId (required) — The ID of the webhook subscription
- webhookUrl — The URL for the webhook
- events — Comma-separated list of events
- webhookPhoneNumbers — Optional comma-separated list of phone numbers to filter webhook deliveries for
- active — Whether the webhook subscription is active
- clearWebhookPhoneNumbers — Whether to remove any existing phone number filter on the subscription
Output shape
the updated webhook subscription object
Returns the full subscription resource; fields not provided remain unchanged; errors are thrown as ApplicationError.
Examples
Example 1: Update a subscription to point to a new webhook URL and enable it
webhookSubscriptionId=12345, webhookUrl=https://example.com/webhook, active=true
Example 2: Change subscribed events and clear the phone-number filter
webhookSubscriptionId=12345, events=message,update, clearWebhookPhoneNumbers=true