Escalation paths
Create an escalation path
Channels and schedules must belong to the team; a branch ends its list of steps (422 with the step's position, for example steps.1.then.0.channel_id). Paging the person on call is part of the Team plan and up, and so are paths besides the default one (403 PLAN_LIMIT_REACHED).
post/escalation-paths
Request
- Base URLhttps://api.spectate.net/v1
- AuthHTTP bearer
Request body
Example request
{
"name": "On-call engineers",
"working_hours": {
"timezone": "Europe/Amsterdam",
"start_time": "09:00",
"end_time": "17:00"
},
"steps": [
{
"key": "first-page",
"delay_minutes": 5,
"repage_count": 2,
"repage_interval_minutes": 5,
"times": 3,
"conditions": [
{
"key": "env"
}
]
}
]
}Response
The new escalation path.
Example response
{
"name": "On-call engineers",
"working_hours": {
"timezone": "Europe/Amsterdam",
"start_time": "09:00",
"end_time": "17:00",
"description": "Mon–Fri 09:00–17:00 (Europe/Amsterdam)"
},
"steps": [
{
"key": "notify_on_call-1",
"delay_minutes": 5,
"channel": {
"name": "On-call email"
},
"schedule": {
"name": "Primary"
},
"rotation": {
"name": "Primary"
},
"users": [
{
"name": "Jane Doe",
"email": "jane@example.com"
}
],
"conditions": [
{
"key": "env",
"description": "Severity is Critical or High"
}
]
}
],
"warnings": [
{
"message": "Channel Ops Slack is disabled and will be skipped."
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.