Skip to main content
Test Routing Condition Valid
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/5/notifications/notification-center/v1/routers:testCondition \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "template": "alertDef.priority == 'P1'"
}
EOF
{
  "failure": {
    "message": "Invalid condition: condition should be rendered to a boolean value (true or false)"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.coralogix.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

Request to check that provided routing condition is valid

entityType
enum<string>

Entity type.

Available options:
ENTITY_TYPE_UNSPECIFIED,
ALERTS,
TEST_NOTIFICATIONS,
CASES
template
string

Routing condition expression to validate.

Example:

"alertDef.priority == 'P1'"

Response

200 - application/json

Response which specifies condition evaluation result or error

failure
object
required

Indicates the routing condition is invalid, with a human-readable error message.