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

# Update a webhook subscription

`PATCH /v1/webhooks/{id}`

## Request

- Base URL: `https://api.nashboard.ai`
- URL: `https://api.nashboard.ai/v1/webhooks/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

Required scope: `webhooks:write`. Partial update — at least one field required. Re-enabling (`active: true`) resets the failure streak. A new `secret` is re-encrypted; omit to keep existing.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Nashboard-Version` '2026-06-13'

## Request body

- WebhookUpdateRequest: At least one field required.
  - `endpoint_url` string, uri
  - `secret` string
  - `event_types` string[]
  - `active` boolean

## Response `200`

Updated subscription (secret omitted).

- WebhookSubscription
  - `id` string, uuid, required
  - `endpoint_url` string, uri, required
  - `event_types` string[], required
  - `active` boolean, required
  - `failure_count` integer
  - `last_success_at` string, date-time, nullable
  - `last_failure_at` string, date-time, nullable
  - `created_at` string, date-time

## Other responses

- `400`: Bad request (invalid JSON, invalid ID, invalid cursor, etc.)
- `401`: Missing, malformed, or invalid API key.
- `403`: Insufficient scope or scope escalation attempt.
- `404`: Resource not found.
- `409`: Conflict (e.g. email already taken).
- `413`: Request body too large.
- `415`: Unsupported media type.
- `422`: Request body failed schema validation.
- `429`: Rate limited, quota exceeded, or DP budget exhausted.
- `500`: Internal server error.
- `502`: Upstream dependency error (e.g. receipt image storage unavailable — code storage_failure).

---

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