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

# Update webhook

`PATCH /webhooks/{webhookId}`

## Request

- Base URL: `https://klaaro.ai/api/v1`
- URL: `https://klaaro.ai/api/v1/webhooks/{webhookId}`
- Auth: HTTP bearer

## Path parameters

- `webhookId` string, uuid, required

## Request body

- object
  - `datasetId` string, uuid, required: Dataset UUID (from `GET /datasets`).
  - `url` string, uri
  - `events` WebhookEvent[]
  - `description` string, nullable: Max 255 chars

## Response `200`

Updated

- Webhook
  - `id` string, uuid, required
  - `url` string, uri, required
  - `events` WebhookEvent[], required
  - `description` string, nullable
  - `secretLast4` string, nullable
  - `lastDeliveryAt` string, date-time, nullable
  - `lastStatus` string, nullable
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `429`: Rate limited

---

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