Skip to main content
Test Template Render
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/5/notifications/notification-center/v1/templates:test \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "entitySubType": "logsImmediateResolved",
  "template": "{{ alertDef.name }}"
}
'
{
  "result": {
    "failure": {
      "message": "Template rendering failed"
    }
  }
}

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 for testing notification template rendering.

entitySubType
string

Entity sub-type to use when testing template rendering.

Example:

"logsImmediateResolved"

entityType
enum<string>

Entity type.

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

Template string to test rendering for.

Example:

"{{ alertDef.name }}"

Response

200 - application/json

Response containing the results of a notification template render test.

result
object

Result of a template render test, either a success with rendered output or a failure with reason.