Skip to main content

Test Template Render

POSThttps://api.coralogix.com/mgmt/openapi/5/notifications/notification-center/v1/templates:test

Tests the rendering of a notification template.

Authorizations

Authorizationstringheaderrequired
API key authentication

Request

Body

application/json

Request for testing notification template rendering.

    entitySubType#string

    Entity sub-type to use when testing template rendering.

    Possible values: non-empty and <= 100 characters, Value must match regular expression ^[\s\S]*$

    Example: logsImmediateResolved
    entityType#notification_center.EntityType

    Entity type.

    Possible values: [ENTITY_TYPE_UNSPECIFIED, ALERTS, TEST_NOTIFICATIONS, CASES]

    template#string

    Template string to test rendering for.

    Possible values: <= 20000 characters, Value must match regular expression ^[\s\S]*$

    Example: {{ alertDef.name }}

Response

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.

    oneOf
    object

    Indicates the template render test failed, with a message and failure reason.

    Success.