---
title: "Update webhook"
method: PATCH
path: "/api/mail/v1/webhooks/{webhookId}"
tags: ["Mail: Webhooks"]
---

# Update webhook

`PATCH /api/mail/v1/webhooks/{webhookId}`

Partially update a webhook. Only the fields included in the request
body are changed; omitted fields retain their current values. Pass
`"description": null` to clear the description.

## Path parameters

- `webhookId` string, required

## Request body

- MailV1SchemaUpdateWebhookRequestSchema — Fields to update. All fields are optional; only provided fields are changed. Pass `"description": null` to clear the description.
  - `name` string — New human-readable name for the webhook
  - `description` string, nullable — New description, or null to clear it
  - `events` string[] — Replaces the full list of subscribed events
  - `status` 'active' | 'disabled' | 'paused' — New status for the webhook
  - `url` string — New URL to deliver events to

## Response `200`

Success response

- MailV1WebhooksWebhookResource
  - `id` string — Unique webhook identifier
  - `mailbox` MailV1WebhooksWebhookMailboxResource
    - `id` string
    - `address` string
  - `name` string — Human-readable name for this webhook
  - `description` string, nullable — Optional description of the webhook's purpose
  - `events` string[] — Events that trigger this webhook
  - `status` 'active' | 'disabled' | 'paused' — Current status of the webhook
  - `url` string — URL that receives webhook POST requests
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400` — Error response
- `401` — Unauthenticated response
- `404` — Error response
- `422` — Error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/74abfea76e36/schema)
