Enable/Disable a Webhook
POST/api/webhooks/{id}/toggle
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
curl -X POST "https://yoursite.com/api/webhooks/123/toggle" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "field": "value" }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Webhook enabled",
"active": 1
} Error-Response:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Webhook not found"
}