Use this endpoint to update an existing alert setting record.
NOTE: When updating a webhook alert, we will ensure the endpoint is reachable by sending a GET request to the provided URL. If a 200 response is not returned, a 400 will be returned and the alert setting update will be rejected.
Security
basicAuth
The delivery method for the alert.
| Enum Value | Description |
|---|---|
| webhook | webhook |
| slack | Slack |
- US Mailgunhttps://api.mailgun.net/v1/alerts/settings/events/{id}
- EU Mailgunhttps://api.eu.mailgun.net/v1/alerts/settings/events/{id}
curl -i -X PUT \
-u '<username>:<password>' \
'https://api.mailgun.net/v1/alerts/settings/events/{id}' \
-H 'Content-Type: application/json' \
-d '{
"event_type": "ip_delisted",
"channel": "email",
"settings": {
"emails": [
"recipient-a@example.com",
"recipient-b@example.com"
]
}
}'Response
{ "message": "settings updated" }