Creates a new escalation policy from provided data
curl --request POST \
--url https://api.rootly.com/v1/escalation_policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "escalation_policies",
"attributes": {
"name": "<string>",
"description": "<string>",
"repeat_count": 123,
"group_ids": [
"<string>"
],
"service_ids": [
"<string>"
],
"business_hours": {
"time_zone": "International Date Line West",
"days": [
"M"
],
"start_time": "<string>",
"end_time": "<string>"
}
}
}
}
'{
"data": {
"id": "cafd7721-7269-4340-b299-a8d139ac499c",
"type": "escalation_policies",
"attributes": {
"name": "Platform EP",
"description": "test",
"repeat_count": 5,
"created_by_user_id": 282,
"last_updated_by_user_id": 282,
"group_ids": [
"2dae41dc-9358-4530-9c80-b9793319eb5c"
],
"service_ids": [],
"business_hours": {
"time_zone": "America/New_York",
"days": [
"M",
"T",
"W",
"R",
"F"
],
"start_time": "09:00",
"end_time": "17:00"
},
"created_at": "2026-02-01T18:02:52.346-08:00",
"updated_at": "2026-02-01T18:02:52.346-08:00"
},
"relationships": {
"escalation_levels": {
"data": []
},
"escalation_paths": {
"data": []
},
"groups": {
"data": [
{
"id": "2dae41dc-9358-4530-9c80-b9793319eb5c",
"type": "groups"
}
]
},
"services": {
"data": []
}
}
}
}Was this page helpful?
curl --request POST \
--url https://api.rootly.com/v1/escalation_policies \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '
{
"data": {
"type": "escalation_policies",
"attributes": {
"name": "<string>",
"description": "<string>",
"repeat_count": 123,
"group_ids": [
"<string>"
],
"service_ids": [
"<string>"
],
"business_hours": {
"time_zone": "International Date Line West",
"days": [
"M"
],
"start_time": "<string>",
"end_time": "<string>"
}
}
}
}
'{
"data": {
"id": "cafd7721-7269-4340-b299-a8d139ac499c",
"type": "escalation_policies",
"attributes": {
"name": "Platform EP",
"description": "test",
"repeat_count": 5,
"created_by_user_id": 282,
"last_updated_by_user_id": 282,
"group_ids": [
"2dae41dc-9358-4530-9c80-b9793319eb5c"
],
"service_ids": [],
"business_hours": {
"time_zone": "America/New_York",
"days": [
"M",
"T",
"W",
"R",
"F"
],
"start_time": "09:00",
"end_time": "17:00"
},
"created_at": "2026-02-01T18:02:52.346-08:00",
"updated_at": "2026-02-01T18:02:52.346-08:00"
},
"relationships": {
"escalation_levels": {
"data": []
},
"escalation_paths": {
"data": []
},
"groups": {
"data": [
{
"id": "2dae41dc-9358-4530-9c80-b9793319eb5c",
"type": "groups"
}
]
},
"services": {
"data": []
}
}
}
}