Skip to main content
PATCH
/
v1
/
webhooks
/
{webhook_id}
curl -X PATCH "https://api.danubeai.com/v1/webhooks/f47ac10b-58cc-4372-a567-0e02b2c3d479" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"is_active": false}'
{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "url": "https://example.com/webhooks/danube",
  "events": ["tool.execution.completed", "tool.execution.failed"],
  "is_active": false,
  "description": "Production monitoring",
  "created_at": "2026-02-20T10:00:00Z",
  "updated_at": "2026-02-24T15:30:00Z"
}

Overview

Update an existing webhook’s URL, subscribed events, active status, or description. Only the fields you include in the request body will be updated. Auth: Requires JWT token (Authorization: Bearer <token>). Only the webhook owner can update it.

Path Parameters

webhook_id
string
required
The webhook UUID to update

Body Parameters

All fields are optional. Include only the fields you want to change.
url
string
New HTTPS URL. Must start with https://.
events
string[]
New set of event types to subscribe to.
is_active
boolean
Set to false to pause deliveries without deleting the webhook, or true to re-enable.
description
string
Updated description.

Example

curl -X PATCH "https://api.danubeai.com/v1/webhooks/f47ac10b-58cc-4372-a567-0e02b2c3d479" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"is_active": false}'
{
  "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "url": "https://example.com/webhooks/danube",
  "events": ["tool.execution.completed", "tool.execution.failed"],
  "is_active": false,
  "description": "Production monitoring",
  "created_at": "2026-02-20T10:00:00Z",
  "updated_at": "2026-02-24T15:30:00Z"
}