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

# Update a webhook

`PATCH /v3/webhooks/{id}`

Updates the specified webhook by setting the values of the parameters passed. Any parameters not provided will be left unchanged.

## Path parameters

- `id` string, required

## Request body

- WebhookUpdateRequestModel
  - `name` string, nullable — Name of the webhook.
  - `url` string, uri, nullable — The endpoint which will receive the HTTP POST payload.
  - `token` string, nullable — The secret which will be used to sign the payload using HMAC256 algorithm.
  - `enabled` boolean, nullable — Whether webhook is enabled, you can use it to disable a webhook.
  - `events` string[], nullable — The list of events which trigger the webhook.

## Response `200`

OK

- WebhookDto
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `name` string, required
  - `url` string, required
  - `token` string, required
  - `enabled` boolean, required
  - `status` 'healthy' | 'unhealthy' | 'suspended', required
  - `events` string[], required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `429` — Too Many Requests
- `500` — Server Error

---

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