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

# Update a webhook subscription

`PUT /webhooks/{id}`

## Request

- Base URL: `https://api.smokeball.com`
- URL: `https://api.smokeball.com/webhooks/{id}`
- Auth: API key in header `x-api-key` and API key in header `Authorization`

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.dev/smokeball/apis/smokeball-api.md) - [All operations](https://skmtc.dev/smokeball/apis/smokeball-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smokeball/apis/smokeball-api/revisions/6e350cf667d4?raw)
