---
title: "Conditionally update endpoint or event scopes."
method: PATCH
path: "/api/v1/webhook-subscriptions/{subscriptionId}"
tags: ["Webhooks"]
---

# Conditionally update endpoint or event scopes.

`PATCH /api/v1/webhook-subscriptions/{subscriptionId}`

## Request

- Base URL: `https://commentary.dev`
- URL: `https://commentary.dev/api/v1/webhook-subscriptions/{subscriptionId}`
- Auth: HTTP bearer

## Path parameters

- `subscriptionId` string, required

## Headers

- `If-Match` string, required
- `X-Commentary-Workspace-Id` string
- `X-Correlation-Id` string

## Request body

- object
  - `endpointUrl` string, uri
  - `eventTypes` string[]

## Response `200`

Successful response.

- object

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required.
- `403`: The token or session does not have permission for this resource.
- `404`: The resource was not found.
- `412`: The ETag is stale.
- `428`: If-Match is required.
- `429`: The request was rate limited.

---

[API](https://skmtc.dev/commentary/apis/commentary-public-api.md) · [All operations](https://skmtc.dev/commentary/apis/commentary-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/commentary/apis/commentary-public-api/revisions/7aaafc198c52?raw)
