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": "80b8b393-f17f-4c7c-9915-8f3ae28189f3",
"type": "escalation_policies",
"attributes": {
"name": "Platform EP",
"description": "test",
"repeat_count": 5,
"created_by_user_id": 271,
"last_updated_by_user_id": 271,
"group_ids": [
"5a904876-c566-4fc5-a52e-76a44066858a"
],
"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-01-12T08:35:32.904-08:00",
"updated_at": "2026-01-12T08:35:32.904-08:00"
},
"relationships": {
"escalation_levels": {
"data": []
},
"escalation_paths": {
"data": []
},
"groups": {
"data": [
{
"id": "5a904876-c566-4fc5-a52e-76a44066858a",
"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": "80b8b393-f17f-4c7c-9915-8f3ae28189f3",
"type": "escalation_policies",
"attributes": {
"name": "Platform EP",
"description": "test",
"repeat_count": 5,
"created_by_user_id": 271,
"last_updated_by_user_id": 271,
"group_ids": [
"5a904876-c566-4fc5-a52e-76a44066858a"
],
"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-01-12T08:35:32.904-08:00",
"updated_at": "2026-01-12T08:35:32.904-08:00"
},
"relationships": {
"escalation_levels": {
"data": []
},
"escalation_paths": {
"data": []
},
"groups": {
"data": [
{
"id": "5a904876-c566-4fc5-a52e-76a44066858a",
"type": "groups"
}
]
},
"services": {
"data": []
}
}
}
}