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>" }
Updates the url or subcribed to events for a webhook subscription. This can be used via the app or via the API by providing an API key.
API key for authentication
The unique identifier of the webhook subscription to update
The new endpoint where webhook events are sent
The new events to subscribe the url to
Show child attributes
Returns the updated webhook subscription.
Was this page helpful?