### Update a webhook endpoint

`PATCH /api/v1/admin/webhooks/endpoints/{id}`

Replaces name, url, events and all_events outright, and patches enabled only when it is present. Send the full object, because a missing events array clears the subscription rather than leaving it alone.

- Authentication: manager session (JWT) or API token
- Permission: `prm_notifications_manage` (Manage notification channels & templates)
- Risk: write
- Rate limit bucket: `t_mutate`

#### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Endpoint id. |

#### Note

This is a PATCH that behaves as a replace for four of its five fields. An update that sends only url wipes the events list.

