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

# Update a webhook

`PATCH /webhooks/{id}`

## Request

- Base URL: `https://sending.dev/api/v1`
- URL: `https://sending.dev/api/v1/webhooks/{id}`
- Auth: HTTP bearer

Required scope: `webhooks:write`.

## Path parameters

- `id` string, required: Webhook ID.

## Request body

- UpdateWebhookInput
  - `url` string, uri
  - `description` string
  - `events` string[]
  - `enabled` boolean

## Response `200`

Webhook updated.

- WebhookEnvelope
  - `webhook` Webhook, required
    - `id` string, uuid, required
    - `url` string, required
    - `description` string, nullable
    - `events` string[]
    - `enabled` boolean
    - `createdAt` string, date-time

## Other responses

- `401`: Missing or invalid token.
- `403`: Insufficient scope.
- `404`: Resource not found.
- `422`: Invalid input.

---

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