---
title: "Update webhook"
method: PATCH
path: "/api/v1/webhooks/{id}"
tags: ["Webhooks"]
---

# Update webhook

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

Updates an endpoint, event selection, or delivery settings.

## Path parameters

- `id` string, required

## Request body

- object
  - `url` string, uri
  - `eventTypes` EventType[] — Array of event types to subscribe to.
  - `isActive` boolean

## Response `200`

Webhook updated

- Webhook — Webhook endpoint registered to receive event deliveries.
  - `id` string, required
  - `url` string, uri, required
  - `eventTypes` EventType[], required — Array of event types to subscribe to.
  - `isActive` boolean, required
  - `consecutiveFailures` integer, required — Consecutive failed delivery attempts since the last success.
  - `deliveryStatus` 'active' | 'paused' | 'needs_attention', required — Endpoint delivery state. paused means the user paused delivery. needs_attention marks repeated failures. Delivery attempts continue.
  - `failureHardCap` integer, required — Maximum reported failures before needs_attention. It does not pause delivery.
  - `createdAt` string, date-time, required

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `404` — Not found
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.
- `default` — Unexpected error.

## Changes

- **2026-08-12** `5d4938bb7de3` — 90 warning
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …86 more
- **2026-08-12** `4da209b29df8` — 30 warning
  - added the new `coverage_cursor_gone` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `coverage_cursor_gone` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `coverage_cursor_gone` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …26 more

[Change history](https://skmtc.dev/xquik-dev/apis/xquik-api-2/changes/api/v1/webhooks/:id/patch.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api-2.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api-2/revisions/834c16fa45e8/schema)
