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

# Update a webhook

`PATCH /webhooks/{id}`

## Request

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

Changes a webhook's endpoint, events or status.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateWebhookRequest
  - `endpoint` string, uri
  - `events` string[]
  - `status` 'enabled' | 'disabled'

## Response `200`

Webhook updated

- WebhookIdResponse
  - `object` 'webhook', required
  - `id` string, uuid, required

## Other responses

- `401`: Missing, malformed or invalid API key
- `404`: Not found
- `422`: Validation error
- `429`: Rate limit exceeded: 600 requests per minute per API key and 3,000 per team; wait for Retry-After

---

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