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

# Update a webhook endpoint

`PATCH /api/webhooks/{id}`

## Request

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

Update the URL, description, subscriptions, or enabled flag. Re-enabling clears the failure count.

## Path parameters

- `id` string, uuid, required

## Headers

- `Api-Version` '1'

## Request body

- WebhookEndpointUpdate
  - `description` string
  - `enabled` boolean
  - `eventTypes` string[]
  - `url` string, uri

## Response `200`

The updated endpoint.

- object
  - `endpoint` WebhookEndpoint, required
    - `consecutiveFailures` integer, required
    - `createdAt` string, date-time, required
    - `description` string, required
    - `disabledAt` string, date-time, nullable
    - `disabledReason` string, nullable
    - `enabled` boolean, required
    - `eventTypes` string[], required: Empty means every event type.
    - `id` string, uuid, required
    - `updatedAt` string, date-time, required
    - `url` string, uri, required
    - `workspaceId` string, uuid, required
  - `ok` boolean, required

## Other responses

- `404`: No such endpoint.

---

[API](https://skmtc.dev/donebear/apis/done-bear-api.md) · [All operations](https://skmtc.dev/donebear/apis/done-bear-api/llms.txt) · [OpenAPI document](https://skmtc.dev/donebear/apis/done-bear-api/revisions/91de7e02be0d?raw)
