Skip to content

Update Webhook

Updates one or more fields on an existing webhook endpoint. Only the provided fields are modified; all others remain unchanged.

PATCH /v1/webhooks/{webhook_id}
webhooks:write

Path Parameters

ParameterTypeRequiredDescription
webhook_idstringYesThe unique identifier of the webhook.

Request Body

All fields are optional. Only include the fields you want to update.

ParameterTypeRequiredDescription
urlstringNoNew HTTPS URL for the webhook endpoint.
eventsstring[]NoUpdated list of event types to subscribe to. Replaces the existing list.
descriptionstringNoUpdated human-readable description.
enabledbooleanNoSet to false to pause delivery, or true to re-enable.

Request Examples

Terminal window
curl -X PATCH https://xqr.co/api/v1/webhooks/wh_a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
-H "Authorization: Bearer xqr_pk_a1b2c3d4.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"events": ["link.created", "link.scanned", "link.deleted"],
"description": "All link lifecycle events"
}'

Response

200 OK

The updated webhook object.

{
"data": {
"id": "wh_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"url": "https://example.com/webhooks/xqr",
"events": ["link.created", "link.scanned", "link.deleted"],
"description": "All link lifecycle events",
"enabled": true,
"failure_count": 0,
"created_at": "2026-03-21T14:30:00Z",
"updated_at": "2026-03-21T15:45:00Z"
},
"meta": {
"request_id": "req_1e2f3a4b5c6d7e89",
"rate_limit": {
"limit": 600,
"remaining": 596,
"reset": 1742572800
}
}
}

Was this page helpful?