---
title: "Update Alert Webhook"
method: PATCH
path: "/api/v2/alert-webhooks/{alert_webhook_id}"
tags: ["Alerts", "Enterprise"]
---

# Update Alert Webhook

`PATCH /api/v2/alert-webhooks/{alert_webhook_id}`

Partially updates an alert webhook by ID. Only fields present in the request body are modified.

## Request body

- object — Partial update for an alert webhook. At least one field is required. Only fields present in the request body are modified.
  - `name` string
  - `description` string
  - `url` string, uri
  - `type` 'generic' | 'slack' | 'ms-teams'
  - `disabled` boolean — Set to `true` to disable the webhook (populates `disabled_at`/`disabled_by`), `false` to re-enable.

## Response `200`

OK

- object
  - `data` object
    - `webhook` ModelAlertWebhook — Alert webhook resource — a joined view of the `alert_channels`, `alert_webhooks` for a single webhook destination. The HMAC secret value is never included in this view; it is only returned at create or rotate time.
      - `id` string, uuid — The channel UUID; also serves as the webhook identifier.
      - `type` 'generic' | 'slack' | 'ms-teams' — Webhook target type.
      - `name` string
      - `description` string
      - `url` string, uri
      - `health` number, double — Rolling health score in [0, 1], where 1 is fully healthy.
      - `attempts` integer — Total dispatch attempts observed for this webhook.
      - `failures` integer — Total failed dispatch attempts observed for this webhook.
      - `last_error` string, nullable
      - `last_errored_at` string, date-time, nullable — An RFC-3339 formatted string
      - `last_succeeded_at` string, date-time, nullable — An RFC-3339 formatted string
      - `created_at` string, date-time
      - `created_by` string
      - `updated_at` string, date-time
      - `updated_by` string
      - `disabled_at` string, date-time, nullable — An RFC-3339 formatted string
      - `disabled_by` string, nullable

## Other responses

- `400` — **Bad Request** This could be due to one of the following reasons: - JSON payload is missing or malformed - Path or query parameters are missing or invalid/malformed - The data sent is not valid (ex- sending a `string` in an `integer` field)
- `401` — **Unauthorized** This endpoint failed an authentication requirement. Either the client tried to access a protected endpoint without being authenticated, or an auth validation failed (ex- invalid credentials or expired token).
- `403` — **Forbidden** This is most commonly caused by an authenticated client trying to access a resource that it does not have permission for.
- `404` — **Not Found** This error typically comes from operations where a valid ID was passed to the request to look up an entity but the entity could not be found.
- `409` — **Conflict** The supplied `url` collides with another alert webhook
- `429` — **Too Many Requests** The client has sent too many requests within a certain time window and tripped the rate limiting middleware.
- `500` — **Internal Server Error** This is usually the result of either an unexpected database or application error. The client may try modifying or resending the request, but the error is likely not related to the client doing something wrong.

---

[API](https://skmtc.net/specterops/apis/bloodhound-api.md) · [All operations](https://skmtc.net/specterops/apis/bloodhound-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/specterops/bloodhound-api/revisions/e0b866156902/schema)
