Webhooks
Automate status updates and announcements from external systems.
Update Status via Webhook
A simplified endpoint for updating component status without full admin access.
HTTP Method & URL: POST /api/WebHook/UpdateComponentStatus
Request
- Headers
- Payload
- cURL
| Name | Value | Required | Description |
|---|---|---|---|
X-API-KEY | string | Yes | Your unique Webhook or API key. |
Content-Type | application/json | Yes | Sending JSON data. |
Body: JSON object
{
"ComponentName": "API Service",
"Status": "Major Outage"
}
curl -X POST "https://stg.itechops.com/api/WebHook/UpdateComponentStatus" \
-H "X-API-KEY: your_webhook_key_here" \
-H "Content-Type: application/json" \
-d '{
"ComponentName": "API Service",
"Status": "Major Outage"
}'
Responses
- 200 OK
- 400 Bad Request
- 401 Unauthorized
- 500 Server Error
Description: Success. Status updated via webhook.
{
"Success": true,
"Message": "Status updated via webhook"
}
Description: Invalid payload or component name.
{
"Success": false,
"Result": null,
"Message": "Component not found."
}
Description: Authentication failed.
{
"Success": false,
"Result": null,
"Message": "Invalid or missing API key."
}
Description: Internal server error.
{
"Success": false,
"Result": null,
"Message": "An unexpected error occurred."
}