Skip to main content
Alerting & Response/Alert Templates

CreateAlertSilenceTemplate

Create a reusable silence template for recurring maintenance windows

POST/api/v1/alerting/silence-templates

Operation ID

CreateAlertSilenceTemplate

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • name
    StringRequired

    Human-readable template name

    Example: Weekly Maintenance

  • description
    StringRequired

    Description of the template purpose

    Example: Suppress non-critical alerts during weekly maintenance

  • matchers
    ListRequired

    Label matchers for the silence scope

    Example: (nested array)

    • key
      String

      Label key to match against

      Example: severity

    • value
      String

      Label value to match

      Example: warning

    • matcherType
      String

      Match type: exact or regex

      Example: exact

  • recurrence
    ObjectRequired

    Optional recurrence configuration

    • cron
      String

      Cron expression for recurring silence windows

      Example: 0 2 * * 0

    • duration
      Integer

      Duration in minutes for each silence window

      Example: 120

    • timezone
      String

      Timezone for cron evaluation

      Example: Asia/Shanghai

  • createdBy
    StringRequired

    User creating this template

    Example: admin

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • id
    String

    Unique identifier of the template

    Example: tmpl-001

  • name
    String

    Human-readable template name

    Example: Weekly Maintenance

  • description
    String

    Description of the template purpose

    Example: Suppress non-critical alerts during weekly maintenance

  • matchers
    List

    Label matchers for the silence scope

    Example: (nested array)

    • key
      String

      Label key to match against

      Example: severity

    • value
      String

      Label value to match

      Example: warning

    • matcherType
      String

      Match type: exact or regex

      Example: exact

  • recurrence
    Object

    Optional recurrence configuration

    • cron
      String

      Cron expression for recurring silence windows

      Example: 0 2 * * 0

    • duration
      Integer

      Duration in minutes for each silence window

      Example: 120

    • timezone
      String

      Timezone for cron evaluation

      Example: Asia/Shanghai

  • protectP0
    Boolean

    Whether to protect P0 (critical) alerts from being silenced

    Example: true

  • createdBy
    String

    User who created this template

    Example: admin

  • createdAt
    String

    Timestamp when the template was created

    Example: 2026-01-15T08:00:00Z