lists
Update webhook
Update the settings for an existing webhook.
patch/3.0/lists/{list_id}/webhooks/{webhook_id}
Request
- Base URLhttps://api.mailchimp.com
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://login.mailchimp.com/oauth2/authorizeToken URLhttps://login.mailchimp.com/oauth2/token
- TypeScripthttps://skmtc.dev/mailchimp/apis/mailchimp-api/docs/3.0/lists/:list_id/webhooks/:webhook_id/patch.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
list_idstring required
The unique ID for the list.
webhook_idstring required
The webhook's id.
Request body
Example request
{
"events": {
"campaign": true,
"cleaned": true,
"profile": true,
"subscribe": true,
"unsubscribe": true,
"upemail": true,
"sms_subscribe": true,
"sms_unsubscribe": true,
"upsms": true,
"sms_campaign": true
},
"sources": {
"admin": true,
"api": true,
"user": true
},
"url": "http://yourdomain.com/webhook"
}Response
Example response
{
"events": {
"campaign": true,
"cleaned": true,
"profile": true,
"subscribe": true,
"unsubscribe": true,
"upemail": true,
"sms_subscribe": true,
"sms_unsubscribe": true,
"upsms": true,
"sms_campaign": true
},
"id": "5d9a5e3f7b",
"list_id": "4ca5becb8d",
"signing_enabled": true,
"sources": {
"admin": true,
"api": true,
"user": true
},
"url": "http://yourdomain.com/webhook"
}Changes
No recorded changes to this operation across all 1 revision of this API.