Skip to main content
PATCH
/
v1
/
tx-subscriptions
/
{subscription_id}
/
callback_url
Update callback URL within subscription
curl --request PATCH \
  --url https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/callback_url \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "callback_url": "https://webhook.site/new-callback-url"
}
'
{
  "errors": [
    {
      "title": "Parameter is malformed",
      "detail": "Some validation errors will be described here"
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

subscription_id
string
required

ID of the subscription

Example:

"77e77447-1586-40e8-a75b-467ef939a0b1"

Body

application/json
callback_url
string

The new callback URL to be used for the subscription.

Example:

"https://webhook.site/new-callback-url"

Response

Successfully updated callback URL