cURL
curl --request PATCH \ --url https://api.ledger.so/v1/webhooks/{webhookId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>", "events": [ "<string>" ], "status": "<string>" } '
{ "ok": false, "error": { "code": "INVALID_REQUEST", "message": "Validation failed" } }
Updates a webhook endpoint’s URL, subscribed events, or status.
Pass your API key as a Bearer token: Authorization: Bearer ld_live_...
Authorization: Bearer ld_live_...
The webhook ID
New URL for the webhook
Updated list of event types
Webhook status (e.g. "active", "disabled")
Webhook updated