---
title: "Update Webhook"
method: PATCH
path: "/api/v1/webhooks/{sub_id}"
tags: ["webhooks"]
---

# Update Webhook

`PATCH /api/v1/webhooks/{sub_id}`

## Request

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

## Path parameters

- `sub_id` string, required

## Request body

- WebhookUpdate
  - `events` string[], nullable
  - `isActive` boolean, nullable

## Response `200`

Successful Response

- WebhookResponse
  - `id` string, required
  - `url` string, required
  - `events` string[], required
  - `isActive` boolean, required
  - `lastDeliveredAt` string, date-time, nullable, required
  - `lastStatusCode` integer, nullable, required
  - `consecutiveFailures` integer, required
  - `createdAt` string, date-time, required

## Other responses

- `422`: Validation Error

---

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