---
title: "Update Webhook"
method: PUT
path: "/api/webhooks/{id}"
tags: ["Webhooks"]
---

# Update Webhook

`PUT /api/webhooks/{id}`

Updates an existing webhook.

> 📘 One webhook per organization
>
> An organization can register a single webhook, which receives every event
> produced in that organization. See the
> [Events documentation](../../../guides/events) for the
> list of event types and payload shapes.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Polytomic-Version` string

## Request body

- UpdateWebhooksSchema
  - `endpoint` string, required
  - `organization_id` string, uuid, nullable
  - `secret` string, required

## Response `200`

OK

- WebhookEnvelope
  - `data` Webhook
    - `created_at` string, date-time
    - `disabled` boolean
    - `endpoint` string
    - `id` string, uuid
    - `organization_id` string, uuid
    - `secret` string

## Other responses

- `401` — Unauthorized
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.net/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/versions/5e9bcd4cfb2d/schema)
