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

# Update a webhook

`PATCH /webhooks/{id}`

Update an existing webhook's name, URL, events, or active status.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `url` string, uri
  - `events` string[]
  - `isActive` boolean

## Response `200`

Webhook updated

- object
  - `success` boolean
  - `webhook` Webhook
    - `_id` string
    - `name` string
    - `url` string, uri
    - `events` string[]
    - `isActive` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — Invalid request
- `404` — Webhook not found
- `500` — Server error

---

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