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

# Update a webhook endpoint

`PATCH /v1/webhooks/endpoints/{endpoint_id}`

Update an endpoint's name, URL, or subscribed events. Only the fields you send are changed. Requires the `webhooks:write` scope.

## Path parameters

- `endpoint_id` string, required

## Request body

- UpdateWebhookEndpointRequest — Fields to update on a webhook endpoint. Only the fields you send are changed.
  - `name` string, nullable — A new label for the endpoint.
  - `url` string, uri, nullable — A new HTTPS delivery URL.
  - `event_types` string[], nullable — Replace the subscribed events. At least one if provided.

## Response `200`

The updated endpoint.

- WebhookEndpoint — A webhook endpoint: a URL Bachs delivers events to, and the events it is subscribed to.
  - `endpoint_id` string, required — Unique identifier for the endpoint.
  - `name` string, required — A label for the endpoint.
  - `url` string, uri, required — The HTTPS URL events are delivered to.
  - `enabled` boolean, required — Whether the endpoint is active and receiving events.
  - `event_types` string[], required — The events this endpoint is subscribed to.
  - `created_at` string, required — When the endpoint was created, in UTC.
  - `updated_at` string, required — When the endpoint was last updated, in UTC.

---

[API](https://skmtc.dev/bachs/apis/bachs-api.md) · [All operations](https://skmtc.dev/bachs/apis/bachs-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bachs/bachs-api/revisions/f29efa8a22df/schema)
