Dhesend

Webhook

Update Webhook Status

Learn how to update Webhook status in Dhesend API.

import Dhesend from 'dhesend';

const dhesend = new Dhesend('dhe_fdd03c4eb1');

dhesend.webhook.updateStatus("a19ae25a-32ef-4f17-b5c8-5c3cf37471b3", "disabled");
{
  "id": "a19ae25a-32ef-4f17-b5c8-5c3cf37471b3",
  "status": "disabled"
}
Endpoint
This endpoint is used to update Webhook status.
POST webhook/update-status
Body parameters
webhook_idstringrequired
ID of the Webhook.
statusstringrequired

Status to be kept.

Possible values:disabledenabled

Dhesend @ 2024 - Made with ❤ by  DHEM