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

# Update webhook

`PUT /webhooks/{webhookId}`

Updates a webhook (URL, events, enabled flag). Cannot edit id, organizationId, or secret (use rotate endpoint for secret).

## Request body

- UpdateWebhookRequest
  - `url` string
  - `events` WebhookEvent[]
  - `enabled` boolean

## Response `200`

Success

- object
  - `data` Webhook, required
    - `id` string, uuid, required
    - `organizationId` string, uuid, required
    - `url` string, required
    - `secret` string, required — HMAC-SHA256 signing secret
    - `events` WebhookEvent[], required
    - `enabled` boolean, required
    - `deletedAt` number, nullable, required
    - `createdAt` number, required
  - `transactionId` string, uuid, required

## Other responses

- `400` — Bad request or validation error
- `401` — Authentication required
- `403` — Insufficient permissions
- `404` — Resource not found
- `409` — Conflict (duplicate resource, in-use resource, or undo conflict)
- `429` — Rate limit exceeded
- `500` — Internal server error

---

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