---
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.

---

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