Enable/Disable a Webhook

POST/api/webhooks/{id}/toggle

Headers

FieldTypeDescription
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"
}
MethodPOST
Path/api/webhooks/{id}/toggle
GroupWebhooks
Sincev3.0.0
Defined inmodules/api/controllers/Webhooks.php