Change a webhook
update_webhookUse this when the user wants a webhook or chat channel to get different alerts: rename it, change the events or sites it is sent, turn it off or on, or move a custom webhook to a new URL. Changes it as the Webhooks page's edit does and returns it as it is now; only the fields given change. Turning one on is held to the plan's active webhooks. Owners and admins only. Not for a chat channel's URL, its request headers or its signing secret, which stay on the Webhooks page, or for adding one (use add_webhook). The webhook format, events and signature are documented at https://flarewarden.com/docs/alerts/webhooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | For a custom webhook only: the new https endpoint. | |
| name | No | A new name. | |
| sites | No | Send it only these sites' events, each by id, name or part of its URL. | |
| events | No | The events it is sent, replacing the current ones, such as incident.started and incident.recovered (list_webhooks shows each webhook's; a chat channel is never sent monitor, maintenance or cron events). | |
| enabled | No | False turns it off (nothing is sent until it is turned on), true turns it on. | |
| webhook | Yes | The webhook's id (from list_webhooks) or its name. | |
| every_site | No | True sends it every site's events again. |