Skip to main content
PATCH
/
v1
/
webhooks
/
{webhookId}
Update webhook
curl --request PATCH \
  --url https://api.ledger.so/v1/webhooks/{webhookId} \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "description": "<string>",
  "events": [
    "<string>"
  ],
  "status": "enabled"
}
'
{
  "object": "webhook",
  "id": "<string>",
  "url": "<string>",
  "events": [
    "<string>"
  ],
  "status": "enabled",
  "createdAt": 123,
  "updatedAt": 123,
  "description": "<string>"
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

webhookId
string
required

The webhook endpoint ID

Body

application/json
url
string<uri>

The URL to send webhook events to

description
string

A description of the webhook endpoint

events
string[]

List of event types to subscribe to

status
enum<string>

Enable or disable the webhook endpoint

Available options:
enabled,
disabled

Response

Webhook updated

object
enum<string>
required
Available options:
webhook
id
string
required

Unique identifier for the webhook endpoint

url
string<uri>
required

The URL to send webhook events to

events
string[]
required

List of event types to subscribe to. Empty array means all events.

status
enum<string>
required

Whether the webhook endpoint is active

Available options:
enabled,
disabled
createdAt
integer
required

Unix timestamp when the webhook was created

updatedAt
integer
required

Unix timestamp when the webhook was last updated

description
string

A description of the webhook endpoint