Update a Webhook
PUT/api/webhooks/{id}
Partial update - only the provided fields change; same validation as create.
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
curl -X PUT "https://yoursite.com/api/webhooks/123" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "field": "value" }' Success-Response:
HTTP/1.1 200 OK
{
"status": true,
"message": "Webhook updated successfully",
"data": {
"id": "3",
"name": "Order sync",
"url": "https://hooks.example.com/perfex",
"events": ["invoice_created", "invoice_paid", "invoice_cancelled"],
"active": "1",
"headers": { "X-Env": "prod" },
"timeout": "45",
"retry_count": "3",
"last_triggered": "2026-07-20 14:32:10",
"success_count": "128",
"failure_count": "2",
"date_created": "2026-02-14 09:12:44",
"date_updated": "2026-07-21 10:05:12",
"has_secret": true
}
} Not-Found:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "Webhook not found"
} Nothing-To-Update:
HTTP/1.1 422 Unprocessable Entity
{
"status": false,
"error": "validation_failed",
"message": "Nothing to update",
"errors": {
"_general": "No updatable fields provided"
}
}