Skip to main content

Update Webhook

Update an existing webhook's configuration.

Endpointโ€‹

PATCH /v1/webhooks/{id}

Authenticationโ€‹

Requires an API key with the webhooks:write scope.

Parametersโ€‹

ParameterTypeLocationDescription
idintegerpathThe webhook ID

Request Bodyโ€‹

All fields are optional. Only provided fields will be updated.

FieldTypeDescription
namestringWebhook name (max 255 characters)
urlstringEndpoint URL
eventsarrayList of event types
is_activebooleanWhether webhook is active

Example Requestโ€‹

curl -X PATCH "https://app.equipdash.com/api/v1/webhooks/3" \
-H "Authorization: Bearer eqd_live_abc123xyz789..." \
-H "Content-Type: application/json" \
-d '{
"name": "My Integration v2",
"events": ["booking.created", "booking.cancelled", "booking.updated", "payment.received"],
"is_active": true
}'

Responseโ€‹

Success (200 OK)โ€‹

Returns the updated webhook resource.

{
"data": {
"id": 3,
"name": "My Integration v2",
"url": "https://my-app.com/webhooks/equipdash",
"events": ["booking.created", "booking.cancelled", "booking.updated", "payment.received"],
"is_active": true,
"failure_count": 0,
"last_triggered_at": null,
"created_at": "2026-01-15T12:00:00+00:00",
"updated_at": "2026-01-15T12:30:00+00:00"
},
"meta": {
"request_id": "req_abc123",
"timestamp": "2026-01-15T12:30:00+00:00"
}
}
Re-enabling Disabled Webhooks

If a webhook was auto-disabled due to delivery failures, you can re-enable it by setting is_active: true. The failure count will reset on the next successful delivery.

Errorsโ€‹

StatusCodeDescription
401authentication_requiredNo API key provided
401invalid_api_keyInvalid API key
403insufficient_scopeAPI key lacks webhooks:write scope
403forbiddenWebhook belongs to different supplier
404resource_not_foundWebhook does not exist
422validation_errorInvalid request data