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

# Update webhook

`PATCH /api/webhooks/{id}`

## Request

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

Update a webhook's URL, subscribed events, active status, or encrypted auth headers. Send only the fields you want to change. A mailbox-confined token reaches only the webhooks confined to its own mailboxes (404 otherwise).

## Path parameters

- `id` string, required

## Request body

- object
  - `url` string, uri: New HTTPS URL
  - `events` string[]: New list of event types
  - `active` boolean: Set false to pause, true to resume
  - `headers` object: Replace encrypted auth headers; send {} to clear. Only Authorization and X-API-Key are accepted.

## Response `200`

Webhook updated

- object
  - `id` string
  - `url` string, uri
  - `events` string[]
  - `active` boolean
  - `header_names` string[]: Configured auth header names; values are never returned
  - `hint` string

## Other responses

- `401`: Missing or invalid API key
- `404`: Webhook not found
- `429`: Rate limit exceeded - wait and retry

---

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