---
title: "Enable/disable or reconfigure a webhook endpoint"
method: PATCH
path: "/webhooks/{id}"
tags: ["Webhooks"]
---

# Enable/disable or reconfigure a webhook endpoint

`PATCH /webhooks/{id}`

## Request

- Base URL: `https://api.aitwire.com/v1`
- URL: `https://api.aitwire.com/v1/webhooks/{id}`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Path parameters

- `id` string, required

## Query parameters

- `tenant` string, required

## Request body

- object
  - `active` boolean
  - `url` string: Must be https:// and resolve to a public host — loopback, private/link-local ranges, non-standard ports and embedded credentials are rejected
  - `description` string
  - `event_types` string[]

## Response `200`

Webhook updated

## Other responses

- `404`: No such endpoint for this tenant

---

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