cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/notification-policies/{slug} \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"notification_policy": {
"name": "<string>",
"bucket_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"routes": {
"defaults": {
"critical": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
},
"warn": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
}
},
"overrides": [
{
"alert_label_matchers": [
{
"name": "<string>",
"value": "<string>"
}
],
"notifiers": {
"critical": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
},
"warn": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
}
}
}
]
},
"slug": "<string>",
"team_slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}UpdateNotificationPolicy
PUT
/
api
/
v1
/
config
/
notification-policies
/
{slug}
cURL
curl --request PUT \
--url https://{tenant}.chronosphere.io/api/v1/config/notification-policies/{slug} \
--header 'API-Token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{}'{
"notification_policy": {
"name": "<string>",
"bucket_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"routes": {
"defaults": {
"critical": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
},
"warn": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
}
},
"overrides": [
{
"alert_label_matchers": [
{
"name": "<string>",
"value": "<string>"
}
],
"notifiers": {
"critical": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
},
"warn": {
"destinations": [
{
"disable_resolves": true,
"email": {
"addresses": [
"<string>"
]
},
"ops_genie": {
"external_connection_slug": "<string>"
},
"pagerduty": {
"external_connection_slug": "<string>"
},
"slack": {
"channels": [
"<string>"
],
"external_connection_slug": "<string>"
},
"victor_ops": {
"external_connection_slug": "<string>",
"routing_keys": [
"<string>"
]
},
"webhook": {
"external_connection_slug": "<string>",
"query_parameters": [
{
"key": "<string>",
"value": "<string>"
}
]
}
}
],
"notifier_slugs": [
"<string>"
],
"repeat_interval_secs": 123
}
}
}
]
},
"slug": "<string>",
"team_slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
Chronosphere API token
Path Parameters
Body
application/json
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.
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.
The NotificationPolicy to update.
Show child attributes
Show child attributes
Response
A successful response containing the updated NotificationPolicy.
Show child attributes
Show child attributes
⌘I

