---
title: "Update a system webhook"
method: PATCH
path: "/v1/webhooks/{webhookId}"
tags: ["events"]
---

# Update a system webhook

`PATCH /v1/webhooks/{webhookId}`

## Request

- Base URL: `https://postbag.dev`
- URL: `https://postbag.dev/v1/webhooks/{webhookId}`
- Auth: HTTP bearer

## Path parameters

- `webhookId` string, required

## Request body

- object
  - `url` string, uri
  - `events` string[]
  - `secret` string
  - `enabled` boolean

## Response `200`

ok

- SystemWebhook
  - `id` string, required
  - `url` string, required
  - `events` string[], required
  - `enabled` boolean
  - `health` 'unknown' | 'ok' | 'failing'

## Other responses

- `400`: Error
- `401`: Error
- `403`: Error
- `404`: Not found
- `409`: Error
- `422`: Error

---

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