Update a webhook configuration
Update the configuration of a reporting webhook. Turn events on or off, change the webhook URL, etc.
- Type: integerwebhook
_id requiredThe identifier of a webhook.
- Type: string Format: urlendpointrequired
The webhook URL.
- Type: array string[] 1…enumeventsrequired
Specifies the types of events you want to report to your webhook. See our reporting webhooks reference for more information about event types and the information they return.
values- customer
_subscribed - customer
_unsubscribed - customer
_subscription _preferences _changed - email
_drafted - email
_attempted
- Type: stringnamerequired
The name of your webhook.
- Type: booleandisabled
Set to
trueto quit sending events to the webhook URL. Set tofalseto enable the webhook. - Type: booleanfull
_resolution Set to
falseto send unique open and click events to the webhook. Set totrueto send all events. - Type: booleanwith
_content Set to
trueto include message content insentevents and topic preferences incio_subscription_preferences_changedevents. This is the Body content option in the UI.
- application/json
- 400
The request was malformed.
- 404
The webhook ID does not exist.
- application/json
{
"endpoint": "https://example.com/webhook",
"events": [
"email_failed",
"webhook_failed"
],
"name": "my cool webhook",
"disabled": false,
"full_resolution": true,
"with_content": false
}
{
"endpoint": "https://example.com/webhook",
"events": [
"email_failed",
"webhook_failed"
],
"name": "my cool webhook",
"disabled": false,
"full_resolution": true,
"id": 4,
"type": "webhook",
"with_content": false
}Returns your webhook configuration and the ID of the webhook.