Skip to main content
PATCH
/
v1
/
webhooks
/
{webhookId}
Update a webhook
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"
  }
}

Authorizations

Authorization
string
header
required

Pass your API key as a Bearer token: Authorization: Bearer ld_live_...

Path Parameters

webhookId
string
required

The webhook ID

Body

application/json
url
string<uri>

New URL for the webhook

events
string[]

Updated list of event types

status
string

Webhook status (e.g. "active", "disabled")

Response

Webhook updated