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

# Update webhook

`PATCH /webhooks/{id}`

## 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. needs_attention means delivery stopped after repeated failures.
  - `failureHardCap` integer, required — Consecutive delivery failures that pause the endpoint.
  - `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.

## Changes

- **2026-07-13** `83005363f122` — 6 breaking, 17 warning, 97 info
  - added `subschema #1: LegacyErrorCode, subschema #2: StructuredError` to the `error` response property `oneOf` list for the response status `400`
  - added `subschema #1: LegacyErrorCode, subschema #2: StructuredError` to the `error` response property `oneOf` list for the response status `401`
  - added `subschema #1: LegacyErrorCode, subschema #2: StructuredError` to the `error` response property `oneOf` list for the response status `404`
  - the `error` response's property type/format changed from `string`/`` to ``/`` for status `400`
  - …116 more
- **2026-04-25** `2adc33156b4b` — 2 breaking, 6 warning, 11 info
  - removed the enum value `follower.gained` of the request property `eventTypes/items/`
  - removed the enum value `follower.lost` of the request property `eventTypes/items/`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `400`
  - added the new `insufficient_credits` enum value to the `error` response property for the response status `401`
  - …15 more

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

---

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