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

# Update a webhook

`PATCH /webhooks/{id}`

## Request

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

Change the destination URL or the subscribed events. The signing secret is unaffected.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateWebhookRequest
  - `url` string, uri
  - `events` string[]

## Response `200`

Updated.

- Webhook
  - `id` string, uuid, required
  - `url` string, uri, required
  - `events` string[], required
  - `createdAt` string, date-time, required

## Other responses

- `400`: The request body or query failed validation (`VALIDATION_ERROR`).
- `401`: Missing, malformed, or revoked API key (`UNAUTHORIZED`).
- `403`: The key exists but may not reach this resource — a `sending_access` key outside the send paths, a test-mode key writing live state, or an account on hold (`FORBIDDEN`, `ACCOUNT_RESTRICTED`).
- `404`: No such resource on this organization (`NOT_FOUND`).
- `429`: Rate limit exceeded (`RATE_LIMITED`).
- `500`: Unexpected server error (`INTERNAL_ERROR`). Carries `request_id`.

---

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