Update Webhook

Update a webhook's URL or subscribed events.

Updates an existing webhook's URL and/or the events it's subscribed to.

Endpoint

PATCH /v1/webhooks/:id

Authentication

Header
Value

x-api-key

Your API key

Path parameters

Parameter
Type
Description

id

string

Webhook UUID

Request body

Field
Type
Required
Description

url

string

No

Updated webhook URL

events

string[]

No

Updated list of events (replaces existing list)

Example request

curl -X PATCH https://ramp-api.ivorypay.io/api/v1/webhooks/wh-uuid-1 \
  -H "x-api-key: your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://yourapp.com/webhooks/v2/ivorypay",
    "events": [
      "onramp.success",
      "onramp.failed",
      "offramp.success",
      "offramp.failed",
      "deposit.received",
      "settlement.success",
      "settlement.failed"
    ]
  }'

Example response

Last updated