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

# Update a workspace webhook subscription

`PATCH /workspaces/{workspaceId}/webhooks/{id}`

## Request

- Base URL: `https://api.releases.sh`
- URL: `https://api.releases.sh/workspaces/{workspaceId}/webhooks/{id}`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required
- `id` string, required

## Request body

- object
  - `url` string
  - `format` 'json' | 'slack' | 'discord'
  - `description` string, nullable
  - `enabled` boolean
  - `disabledReason` string, nullable
  - `releaseType` 'feature' | 'rollup', nullable
  - `sourceId` string, nullable
  - `sourceSlug` string
  - `productId` string, nullable
  - `productSlug` string

## Response `200`

The updated subscription

- object
  - `id` string, required
  - `scope` 'org', required
  - `orgId` string, nullable, required
  - `url` string, required
  - `sourceId` string, nullable, required
  - `productId` string, nullable, required
  - `releaseType` 'feature' | 'rollup', nullable, required
  - `format` 'json' | 'slack' | 'discord', required
  - `enabled` boolean, required
  - `description` string, nullable, required
  - `secretVersion` integer, required
  - `createdAt` string, required
  - `lastSuccessAt` string, nullable, required
  - `lastErrorAt` string, nullable, required
  - `lastErrorMsg` string, nullable, required
  - `consecutiveFailures` integer, required
  - `disabledReason` string, nullable, required
  - `failureStreakStartedAt` string, nullable, required
  - `workspaceId` string, required
  - `deliveryHealth` 'never_delivered' | 'healthy' | 'degraded' | 'failing' | 'paused' | 'auto_paused', required
  - `deliveryHealthSummary` string, required

## Other responses

- `400`: Invalid JSON body or field, an unsafe webhook target, or no recognized fields
- `401`: Sign-in required
- `403`: Workspace owner or admin required
- `404`: Workspace, webhook subscription, or named source/product not found

## Changes

- **2026-10-25** `d2dc9b39f6c3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/releases/apis/releases-api/changes/workspaces/:workspaceId/webhooks/:id/patch.md)

---

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