---
title: "Update a webhook subscription"
method: PUT
path: "/webhooks/{id}"
tags: ["Webhooks"]
---

# Update a webhook subscription

`PUT /webhooks/{id}`

Updates a webhook subscription with the specified subscription details.

## Path parameters

- `id` string, required

## Request body

- WebhookSubscriptionDto
  - `key` string, nullable — Unique key used for creating signature header in webhook notification requests.
  - `name` string, nullable — Name or description of the webhook subscription.
  - `eventTypes` string[], nullable — The event types that the webhook subscription should be subscribed to.
  - `eventNotificationUrl` string, nullable — The uri to notify when an event has occurred.

## Response `200`

When request is successful. Returns updated webhook subscriptions.

- WebhookSubscription
  - `id` string, nullable
  - `href` string, nullable
  - `relation` string, nullable
  - `method` string, nullable
  - `self` Link
    - `id` string, nullable
    - `href` string, nullable
    - `relation` string, nullable
    - `method` string, nullable
  - `accountId` string, nullable — Unique identifier of the associated account.
  - `name` string, nullable — Name or description of the subscription.
  - `eventTypes` string[], nullable — The event types that the webhook subscription is subscribed to.
  - `eventNotificationUrl` string, nullable — The uri to notify when an event has occurred.
  - `createdDateUtc` string, date-time — The webhook subscription creation date.
  - `updatedDateUtc` string, date-time — The webhook subscription last updated date.
  - `lastUpdated` integer — Last updated timestamp

## Other responses

- `400` — When an unsupported request is made.
- `403` — When webhook subscription with specified id is not associated with authenticated client.
- `404` — When the webhook subscription is not found.

---

[API](https://skmtc.net/smokeball/apis/api.md) · [All operations](https://skmtc.net/smokeball/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smokeball/api/revisions/197984da9b42/schema)
