---
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.hairdora.com`
- URL: `https://api.hairdora.com/api/webhooksubscriptions/{webhookSubscriptionId}`
- Auth: API key in header `Authorization`

`url`, `events` and `active` are editable; the secret and salon 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
  - `salonId` string
  - `url` string, uri
  - `events` string[]
  - `active` boolean
  - `creationTime` string, date-time

## Other responses

- `default`: Error response

---

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