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

# Update a webhook

`PATCH /tenants/{tenantId}/webhooks/{webhookId}`

## Path parameters

- `tenantId` string, required
- `webhookId` string, required

## Request body

- UpdateWebhookRequest
  - `name` string, nullable
  - `url` string, uri, nullable
  - `events` string[], nullable
  - `allEvents` boolean, nullable
  - `enabled` boolean, nullable

## Response `200`

Webhook updated

- WebhookResponse
  - `success` true, required
  - `data` object, required
    - `id` string, required — Webhook ID
    - `uuid` string, uuid, required
    - `name` string, required — Webhook name for identification
    - `url` string, uri, required — Webhook endpoint URL
    - `events` string[], required — Subscribed events
    - `allEvents` boolean, required — Whether subscribed to all events
    - `enabled` boolean, required — Whether the webhook is active
    - `createdAt` string, date-time, required
  - `meta` ApiMeta, required
    - `requestId` string, required — Unique request identifier for debugging and support

## Other responses

- `400` — Invalid request parameters
- `401` — Invalid or missing API key
- `404` — Resource not found
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/arkhq-io/apis/ark-email-api.md) · [All operations](https://skmtc.net/arkhq-io/apis/ark-email-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/arkhq-io/ark-email-api/revisions/98a90852ffca/schema)
