---
title: "Update a webhook endpoint"
method: PATCH
path: "/api/v1/webhook-endpoints/{endpoint_id}"
tags: ["webhooks"]
---

# Update a webhook endpoint

`PATCH /api/v1/webhook-endpoints/{endpoint_id}`

## Request

- Base URL: `https://api.izap.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.izap.ai/api/v1/webhook-endpoints/{endpoint_id}`
- Auth: HTTP bearer

Changes an endpoint's URL, label, subscribed events or enabled state; omitted fields are left alone. Re-enabling an endpoint also clears the consecutive-failure streak that auto-disabled it, so a single later failure will not disable it again. The business is taken from the `business-id` header rather than the URL; the path-scoped form of this operation is deprecated.

## Path parameters

- `endpoint_id` string, uuid, required

## Headers

- `business-id` string, nullable, required: UUID of the business the request is scoped to. Required on this route; the deprecated /businesses/{business_id}/... form takes it from the path instead.

## Request body

- WebhookEndpointUpdate
  - `label` string, nullable
  - `url` string, nullable
  - `subscribed_events` string[], nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- WebhookEndpointOut: Everything about an endpoint except its secret, which is unreadable by design.
  - `id` string, uuid, required
  - `label` string, required
  - `url` string, required
  - `subscribed_events` string[], required
  - `enabled` boolean, required
  - `consecutive_failures` integer, required
  - `last_error` string, nullable, required
  - `last_delivery_at` string, date-time, nullable, required
  - `created` string, date-time, required

## Other responses

- `401`: Missing or invalid credentials.
- `403`: The credential is valid but not authorized for this action.
- `404`: The resource, or the business named in the request, does not exist.
- `422`: Validation Error
- `default`: Unexpected error.

---

[API](https://skmtc.dev/izap/apis/izap-api.md) · [All operations](https://skmtc.dev/izap/apis/izap-api/llms.txt) · [OpenAPI document](https://skmtc.dev/izap/apis/izap-api/revisions/e6358c8bf5e9?raw)
