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

# Update a webhook endpoint

`PATCH /webhooks/{id}`

Partially updates a webhook endpoint in the caller's scope. Re-enabling or changing the URL resets the failure count. Requires the webhooks.manage permission; league-scoped endpoints additionally require current league ADMIN membership and the webhooks feature on the league owner's plan.

## Path parameters

- `id` string, required — Webhook endpoint id.

## Request body

- UpdateWebhookBody — Partial update of a webhook endpoint.
  - `url` string — New HTTPS endpoint URL.
  - `events` string[] — Replacement event token list (at least one when present).
  - `label` string — New human label.
  - `isActive` boolean — Enable/disable the endpoint. Re-enabling resets the failure count.

## Response `200`

Update acknowledged.

- WebhookOk — Success ack.
  - `ok` boolean, required

## Other responses

- `400` — Bad request (invalid body, cursor, limit, or date).
- `401` — Missing or invalid API key.
- `403` — API key lacks the required permission.
- `404` — Resource not found.
- `429` — Rate limited.

---

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