---
title: "Update Webhook"
method: PATCH
path: "/v1/webhooks/{webhook_id}"
---

# Update Webhook

`PATCH /v1/webhooks/{webhook_id}`

## Request

- Base URL: `https://api.segly.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.segly.io/v1/webhooks/{webhook_id}`
- Auth: HTTP bearer

## Path parameters

- `webhook_id` string, required

## Request body

- WebhookUpdateRequest
  - `url` string, nullable
  - `events` string[], nullable
  - `enabled` boolean, nullable

## Response `200`

Successful Response

- WebhookResource
  - `id` string, required
  - `url` string, required
  - `events` string[], required
  - `enabled` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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