POST Notification Webhook
Add new webhook configuration.
{
"proxyId": "760b1a86-e590-4890-939b-c504c491a072",
"URLs": [
"https://hooks.test.com/services/T024JFTN4/B01SGHM16H5/kQjkrkIjgurn9buzOaizuj6O"
],
"destinationApp": "custom",
"contentType": "JSON",
"payload": "{\n \"alert_type\": \"${AlertType}\",\n \"alert_name\": \"${AlertName}\",\n \"search_period\": \"${SearchPeriod}\",\n \"hit_oeprator\": \"${HitOperator}\",\n \"messages\": \"${messagesString}\"\n}",
"name": "test-hasmik",
"headers": "{\"Action\":\"POST\",\"contentType\":\"application/json\"}",
"acceptCert": false,
"sendIndividualLogs": false
}
Successfully created webhook configuration.
The request failed because the request body either did not contain valid JSON, or did not match the required JSON format.
{
"errorMessage": "Invalid request body.",
"errorCode": "JSON_FORMAT_ERROR",
"errorDetails": {
"reason": "..."
}
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
SSL connection failed.
Internal error while processing the client request
{
"errorMessage": "The operation failed due to an internal error."
}
A message describing the error.
A code representing the type of error.
Dynamic error details, where the field name can vary depending on the request field and error code.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v2/notification/webhook