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

# Update a webhook

`PUT /webhooks/{webhook_id}`

## Request

- Base URL: `https://api.cloudglue.dev/v1`
- URL: `https://api.cloudglue.dev/v1/webhooks/{webhook_id}`
- Auth: HTTP bearer

Update a webhook

## Path parameters

- `webhook_id` string, required

## Request body

- WebhookUpdateRequest
  - `description` string: Description of the webhook
  - `endpoint` string: URL of the webhook endpoint
  - `subscribed_events` WebhookEvents[]: Events that the webhook is subscribed to
  - `active` boolean: Whether the webhook is active

## Response `200`

Webhook updated successfully

- Webhook
  - `id` string, required: Unique identifier for the webhook
  - `object` 'webhook', required: Object type, always 'webhook'
  - `created_at` integer, required: Unix timestamp in milliseconds when the webhook was created
  - `webhook_secret` string, required: Secret used to verify the webhook request
  - `endpoint` string, required: URL of the webhook endpoint
  - `active` boolean, required: Whether the webhook is active
  - `description` string: Description of the webhook
  - `subscribed_events` WebhookEvents[], required: Events that the webhook is subscribed to

## Other responses

- `404`: Webhook not found
- `500`: An unexpected error occurred on the server

## Changes

- **2026-10-30** `23d3f240819f`: 2 info
  - added the optional property `code` to the response with the `404` status
  - added the optional property `code` to the response with the `500` status
- **2026-08-22** `d2a5205fc779`: 3 warning, 3 info
  - added the new `find_moments.job.completed` enum value to the `subscribed_events/items/` response property for the response status `200`
  - added the new `find_moments.job.failed` enum value to the `subscribed_events/items/` response property for the response status `200`
  - added the new `find_moments.job.processing` enum value to the `subscribed_events/items/` response property for the response status `200`
  - added the new `find_moments.job.completed` enum value to the request property `subscribed_events/items/`
  - …2 more

[Operation history](https://skmtc.dev/cloudglue/apis/cloudglue-api/changes/webhooks/:webhook_id/put.md)

---

[API](https://skmtc.dev/cloudglue/apis/cloudglue-api.md) - [All operations](https://skmtc.dev/cloudglue/apis/cloudglue-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cloudglue/apis/cloudglue-api/revisions/23d3f240819f?raw)
