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": "0819584e-7af6-4a57-80d6-310e3b08ebd9",
"type": "escalation_policies",
"attributes": {
"name": "Platform EP",
"description": "test",
"repeat_count": 5,
"created_by_user_id": 134,
"last_updated_by_user_id": 134,
"group_ids": [
"13797161-57e5-4b9e-994a-83be3c4e5500"
],
"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": "2025-12-21T12:07:30.925-08:00",
"updated_at": "2025-12-21T12:07:30.925-08:00"
},
"relationships": {
"escalation_levels": {
"data": []
},
"escalation_paths": {
"data": []
},
"groups": {
"data": [
{
"id": "13797161-57e5-4b9e-994a-83be3c4e5500",
"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": "0819584e-7af6-4a57-80d6-310e3b08ebd9",
"type": "escalation_policies",
"attributes": {
"name": "Platform EP",
"description": "test",
"repeat_count": 5,
"created_by_user_id": 134,
"last_updated_by_user_id": 134,
"group_ids": [
"13797161-57e5-4b9e-994a-83be3c4e5500"
],
"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": "2025-12-21T12:07:30.925-08:00",
"updated_at": "2025-12-21T12:07:30.925-08:00"
},
"relationships": {
"escalation_levels": {
"data": []
},
"escalation_paths": {
"data": []
},
"groups": {
"data": [
{
"id": "13797161-57e5-4b9e-994a-83be3c4e5500",
"type": "groups"
}
]
},
"services": {
"data": []
}
}
}
}