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

# Update an existing webhook subscription.

`PATCH /webhooks/{id}`

Partially updates an existing webhook subscription using HTTP PATCH.

Supported Updates:
- Change the webhook URL
- Enable or disable the subscription
- Regenerate the secret key

Note: Event types cannot be changed after creation. To update event types, delete and recreate the subscription.

## Path parameters

- `id` string, uuid, required

## Request body

- DebituraDomainModelWebhooksDtosUpdateWebhookRequest
  - `url` string, uri, nullable
  - `events` string[], nullable
  - `isActive` boolean, nullable
  - `regenerateSecret` boolean
  - `isTestMode` boolean, nullable

## Response `200`

Webhook updated successfully

- DebituraDomainModelWebhooksDtosWebhookDto
  - `id` string, uuid
  - `url` string, nullable
  - `events` string[], nullable
  - `isActive` boolean
  - `createdUtc` string, date-time
  - `updatedUtc` string, date-time
  - `disabledReason` string, nullable
  - `secret` string, nullable
  - `isTestMode` boolean

## Other responses

- `400` — Invalid request
- `404` — Webhook not found

---

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