---
title: "Edit a webhook"
method: PATCH
path: "/webhooks/{webhook_id}"
tags: ["Webhooks"]
---

# Edit a webhook

`PATCH /webhooks/{webhook_id}`

Edits the webhook details for the given webhook ID.

## Path parameters

- `webhook_id` string, required

## Request body

- PatchWebhookRequest
  - `name` string — Name of the webhook
  - `url` string, uri — URL the webhook will send events to
  - `events` string[] — Events that the webhook will get triggered by
  - `enabled` boolean

## Response `200`

Operation successful

- WebhookSuccessResponse
  - `success` boolean, required
  - `data` Webhook, required
    - `id` string, uuid, required — ID of the webhook
    - `name` string, required — Name of the webhook
    - `url` string, uri, required — URL the webhook will send events to
    - `events` string[], required — Events this webhook will send updates for
    - `created_at` string, date-time, required — Timestamp when this webhook was created
    - `updated_at` string, date-time, required — Timestamp when this webhook was updated
    - `enabled` boolean, required — Set to true if the webhook is active

## Other responses

- `400` — Error - malformed request
- `401` — Invalid credentials

---

[API](https://skmtc.net/dyte-io/apis/dyte-rest-apis.md) · [All operations](https://skmtc.net/dyte-io/apis/dyte-rest-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dyte-io/dyte-rest-apis/versions/f62d3edd92ae/schema)
