Skip to main content
PUT
/
api
/
v1
/
config
/
notification-policies
/
{slug}
{
  "notification_policy": {
    "name": "<string>",
    "bucket_slug": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "routes": {
      "defaults": {
        "critical": {
          "notifier_slugs": [
            "<string>"
          ],
          "repeat_interval_secs": 123
        },
        "warn": {
          "notifier_slugs": [
            "<string>"
          ],
          "repeat_interval_secs": 123
        }
      },
      "overrides": [
        {
          "alert_label_matchers": [
            {
              "name": "<string>",
              "type": "EXACT",
              "value": "<string>"
            }
          ],
          "notifiers": {
            "critical": {
              "notifier_slugs": [
                "<string>"
              ],
              "repeat_interval_secs": 123
            },
            "warn": {
              "notifier_slugs": [
                "<string>"
              ],
              "repeat_interval_secs": 123
            }
          }
        }
      ]
    },
    "slug": "<string>",
    "team_slug": "<string>",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

API-Token
string
header
required

Chronosphere API token

Path Parameters

slug
string
required

Body

application/json
create_if_missing
boolean

If true, the NotificationPolicy will be created if it does not already exist, identified by slug. If false, an error will be returned if the NotificationPolicy does not already exist.

dry_run
boolean

If true, validates the specified configuration without creating or updating the NotificationPolicy. If the specified configuration is valid, the endpoint returns a partial response without the NotificationPolicy. If the specified configuration is invalid, the endpoint returns an error.

notification_policy
object

The NotificationPolicy to update.

Response

A successful response containing the updated NotificationPolicy.

notification_policy
object