Skip to main content
PATCH
/
webhooks
/
{id}
cURL
curl --request PATCH \
  --url https://sandbox.onconsul.com/v1/webhooks/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "active": true,
  "events": [
    "deposit.created"
  ],
  "url": "<string>"
}
'
{
  "active": true,
  "created_at": "2023-11-07T05:31:56Z",
  "events": [
    "deposit.created"
  ],
  "id": "<string>",
  "url": "<string>"
}
Modify a webhook’s URL, subscribed event types, or toggle it active/inactive.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
active
boolean
events
enum<string>[]
Available options:
deposit.created,
deposit.updated,
inbound_transfer.created,
payout.created,
payout.updated,
withdrawal.created,
withdrawal.updated,
recipient.created,
recipient.updated
url
string<uri>

Response

OK

active
boolean
required
created_at
string<date-time>
required
events
enum<string>[]
required
Available options:
deposit.created,
deposit.updated,
inbound_transfer.created,
payout.created,
payout.updated,
withdrawal.created,
withdrawal.updated,
recipient.created,
recipient.updated
id
string
required
url
string<uri>
required