Skip to main content
PATCH
/
v1
/
webhooks
/
{id}
Update webhook endpoint
curl --request PATCH \
  --url https://api-sandbox.superbank.com/v1/webhooks/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "url": "https://your-app.com/webhooks/superbank-v2",
  "events": [
    "payment.updated"
  ],
  "active": true
}
'
{}

Authorizations

X-Api-Key
string
header
required

Path Parameters

id
string
required

Webhook endpoint ID

Example:

"wh_abc123"

Body

application/json
url
string

Updated HTTPS URL to receive webhook notifications

Example:

"https://your-app.com/webhooks/superbank-v2"

events
enum<string>[]

Updated list of event types to subscribe to

Available options:
account.created,
account.updated,
payment.created,
payment.updated
Example:
["payment.updated"]
active
boolean

Enable or disable the webhook endpoint

Example:

true

Response

Webhook endpoint updated successfully

The response is of type object.