WebhookSubscriptions
UpdateWebhookSubscription
Updates a webhook subscription.
put/v2/webhooks/subscriptions/{subscription_id}
Path parameters
subscription_idstring required
[REQUIRED] The ID of the Subscription to update.
Request body
Example request
{
"subscription": {
"enabled": false,
"name": "Updated Example Webhook Subscription"
}
}Response
Success
Example response
{
"subscription": {
"api_version": "2021-12-15",
"created_at": "2022-01-10 23:29:48 +0000 UTC",
"enabled": false,
"event_types": [
"payment.created",
"payment.updated"
],
"id": "wbhk_b35f6b3145074cf9ad513610786c19d5",
"name": "Updated Example Webhook Subscription",
"notification_url": "https://example-webhook-url.com",
"updated_at": "2022-01-10 23:45:51 +0000 UTC"
}
}