---
title: "Enable or disable an endpoint, or change its subscribed events"
method: PATCH
path: "/v1/webhooks/{endpointId}"
tags: ["Webhooks"]
---

# Enable or disable an endpoint, or change its subscribed events

`PATCH /v1/webhooks/{endpointId}`

## Request

- Base URL: `https://api.ironfang.com/audit`
- URL: `https://api.ironfang.com/audit/v1/webhooks/{endpointId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Enabling clears the consecutive-failure count. An endpoint is disabled automatically after 20 consecutive failed delivery attempts; the reason is on the endpoint.

## Request body

- object
  - `enabled` boolean
  - `events` string[]

## Response `200`

Endpoint

## Other responses

- `400`: Problem response
- `401`: Problem response
- `403`: Problem response
- `404`: Problem response
- `422`: Problem response

---

[API](https://skmtc.dev/ironfang/apis/ironfang-audit-api.md) · [All operations](https://skmtc.dev/ironfang/apis/ironfang-audit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ironfang/apis/ironfang-audit-api/revisions/7430deff2cbd?raw)
