Skip to content

Declares a routing rule.

POST
/v1/m/notify/routes
curl --request POST \
--url https://example.com/v1/m/notify/routes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "dedup_window_seconds": 1, "destination": "example", "enabled": true, "match_kinds": [ "example" ], "match_sources": [ "example" ], "match_subject_kinds": [ "example" ], "match_types": [ "example" ], "min_severity": "", "name": "example", "priority": 1, "throttle_window_seconds": 1 }'

Declares a routing rule. Creating a route is a privileged, self-audited write.

X-Olivares-Tenant
string format: uuid

Target tenant id; required when the principal can act in more than one tenant.

Media type application/json
object
dedup_window_seconds
Any of:

Negative values are stored as zero.

integer
destination
required

Must name a destination provisioned for this tenant when a dispatcher is wired; stored with the server byte cap.

string
>= 1 characters
enabled
Any of:

Defaults true on create; omitted or null keeps the stored value on update.

boolean
match_kinds
Any of:

Empty means any kind.

Array
match_sources
Any of:

Empty means any source.

Array
match_subject_kinds
Any of:

Empty means any subject kind.

Array
match_types
Any of:

Each non-blank trimmed member must be present in GET /match-types; blank members are discarded.

Array
min_severity
Any of:
string
Allowed values: "" info low medium high critical
name
required
Any of:

Required and non-empty on create; accepted but ignored on update. Stored with the server byte cap.

string
priority
Any of:
integer
throttle_window_seconds
Any of:

Negative values are stored as zero.

integer

OK

Media type application/json
object
Example generated
{}

Bad request

Media type application/json
object
Example generated
{}

Unauthenticated

Media type application/json
object
Example generated
{}

Forbidden

Media type application/json
object
Example generated
{}

Not found

Media type application/json
object
Example generated
{}

Conflict / setup required

Media type application/json
object
Example generated
{}

Rate limited

Media type application/json
object
Example generated
{}