Skip to content

Create or update alertmanager route at index API Reference

PUT
/tenants/{tenant}/alertmanager/routes/{id}

Inserts or replaces the child route at the specified index on the root route. Indexes are 0-based and stable within a single Read+Write cycle. To append, pass an index equal to the current count returned by GET /routes.

tenant
required
string

Tenant name

id
required
integer

Route index (0-based)

If-Match
string

Wrapper ETag

Route configuration

object
active_time_intervals
Array<string>
continue
boolean
group_by
Array<string>
Example
[
"alertname",
"cluster"
]
group_interval
string
Example
5m
group_wait
string
Example
30s
match
object
key
additional properties
string
match_re
object
key
additional properties
string
matchers
Array<string>
Example
[
"severity=\"critical\""
]
mute_time_intervals
Array<string>
receiver
string
Example
slack
repeat_interval
string
Example
4h

Route after upsert

object
active_time_intervals
Array<string>
continue
boolean
group_by
Array<string>
Example
[
"alertname",
"cluster"
]
group_interval
string
Example
5m
group_wait
string
Example
30s
match
object
key
additional properties
string
match_re
object
key
additional properties
string
matchers
Array<string>
Example
[
"severity=\"critical\""
]
mute_time_intervals
Array<string>
receiver
string
Example
slack
repeat_interval
string
Example
4h

Validation error or out-of-range index

object
code
string
error
string
field
string
message
string
severity
string