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"
}
Webhooks
Update Webhook
Update a webhook URL, events, or active status
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
Body Parameters
All fields are optional. Include only the fields you want to change.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"
}
