---
title: "Update a webhook subscription"
method: PUT
path: "/api/webhooksubscriptions/{webhookSubscriptionId}"
tags: ["Webhook subscriptions"]
---

# Update a webhook subscription

`PUT /api/webhooksubscriptions/{webhookSubscriptionId}`

## Request

- Base URL: `https://api.dododentist.com`
- URL: `https://api.dododentist.com/api/webhooksubscriptions/{webhookSubscriptionId}`
- Auth: API key in header `Authorization`

`url`, `events` and `active` are editable; the secret and clinic are immutable. Re-enabling an auto-disabled endpoint is done by setting `active` back to true.

## Path parameters

- `webhookSubscriptionId` string, required

## Request body

- object

## Response `200`

The updated subscription (without secret)

- object
  - `_id` string
  - `clinicId` string
  - `url` string, uri
  - `events` string[]
  - `active` boolean
  - `creationTime` string, date-time

## Other responses

- `default`: Error response

---

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