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

# Update a webhook endpoint

`PATCH /v1/webhooks/{id}`

## Request

- Base URL: `https://www.postquick.ai/api`
- URL: `https://www.postquick.ai/api/v1/webhooks/{id}`
- Auth: HTTP bearer

Toggle active state, change the URL, or change the subscribed events list. Re-enabling (active=true) resets the consecutive_failures counter so the endpoint gets a fresh window before auto-disable.

## Path parameters

- `id` string, uuid, required

## Request body

- object: Partial update — only provided fields are changed.
  - `url` string, uri
  - `events` string[]
  - `active` boolean: Toggle active state. Setting active=true also resets consecutive_failures to 0.

## Response `200`

Updated endpoint.

- object
  - `success` true, required
  - `data` object, required
    - `endpoint` object, required: A registered webhook endpoint.
      - `id` string, uuid, required
      - `app_id` string, uuid, required
      - `url` string, uri, required
      - `events` string[], required: Subscribed events (e.g. ["post.partial"]) or ["*"] for all.
      - `active` boolean, required
      - `secret_preview` string, required: First 8 chars of the signing secret. Useful for identifying which secret an endpoint uses without exposing it.
      - `consecutive_failures` integer, required: Count of consecutive failed deliveries. Auto-disables the endpoint at 50; resets to 0 on the first 2xx response.
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required

---

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