a84d4905fdbb
latestOpenAPI 3.1.02026-08-143874115.7 MBWebhooks
Update Webhook
Updates a webhook endpoint's URL, subscribed events, pinned payload version, or enabled state.
patch/webhooks/{id}
Request body
Example request
{
"api_version_date": "2026-01-01",
"child_resource_events": true,
"events": [
"payment.failed"
],
"url": "https://example.com/shine-time/whop-updated"
}Response
webhook updated
Example response
{
"api_version": "v1",
"api_version_date": "2026-01-01",
"consecutive_failures": 9,
"created_at": "2026-01-01T12:00:00.000Z",
"disabled_at": "2026-01-01T12:00:00.000Z",
"disabled_reason": "delivery_failures",
"events": [
"payment.succeeded"
],
"failing_since": "2026-01-01T12:00:00.000Z",
"id": "hook_xxxxxxxxxxxxxx",
"last_failure_at": "2026-01-01T12:00:00.000Z",
"resource_id": "biz_xxxxxxxxxxxxxx",
"testable_events": [
"invoice.created"
],
"url": "https://example.com/hooks",
"webhook_secret": "ws_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}