POST
/
api
/
service
/
webhook-subscription
/
update
JavaScript
import Ivy from '@getivy/node-sdk';

const client = new Ivy({
  apiKey: 'My API Key',
});

const subscription = await client.webhook.subscription.update({ id: {} });

console.log(subscription.id);
{
  "id": "<any>",
  "merchant": "<any>",
  "merchantApp": "<any>",
  "url": "<string>",
  "events": [
    "test"
  ],
  "createdAt": "<any>",
  "updatedAt": "<any>"
}

Authorizations

X-Ivy-Api-Key
string
header
required

API key for authentication

Body

application/json
id
any
required

The unique identifier of the webhook subscription to update

url
string

The new endpoint where webhook events are sent

events
enum<string>[]

The new events to subscribe the url to

Response

200 - application/json

Returns the updated webhook subscription.

id
any
required
merchant
any
required
merchantApp
any
required
url
string
required
events
enum<string>[]
required
createdAt
any
required
updatedAt
any
required