POST
/
v1
/
escalation_policies
/
{escalation_policy_id}
/
escalation_paths
curl --request POST \
  --url https://api.rootly.com/v1/escalation_policies/{escalation_policy_id}/escalation_paths \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "escalation_paths",
    "attributes": {
      "name": "<string>",
      "notification_type": "audible",
      "default": true,
      "match_mode": "match-all-rules",
      "position": 123,
      "repeat": true,
      "repeat_count": 123,
      "rules": [
        {
          "rule_type": "alert_urgency",
          "urgency_ids": [
            "<any>"
          ]
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "715cb3b7-4a16-499b-ab76-61101c3843cb",
    "type": "escalation_paths",
    "attributes": {
      "name": "Test EP Path",
      "default": false,
      "notification_type": "quiet",
      "escalation_policy_id": "d46dfc60-fd4c-4952-8e61-05f2112cbcd4",
      "match_mode": "match-all-rules",
      "position": 1,
      "repeat": true,
      "repeat_count": 3,
      "created_at": "2025-03-19T17:37:39.808-07:00",
      "updated_at": "2025-03-19T17:37:39.844-07:00",
      "rules": [
        {
          "rule_type": "alert_urgency",
          "urgency_ids": [
            "7f71cf4f-6214-4859-9ff0-9dc79327ba04"
          ]
        },
        {
          "rule_type": "working_hour",
          "within_working_hour": true
        },
        {
          "rule_type": "json_path",
          "json_path": "$.title",
          "operator": "is",
          "value": "Test"
        }
      ]
    },
    "relationships": {
      "escalation_levels": {
        "data": []
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

escalation_policy_id
string
required

Body

application/vnd.api+json
data
object
required

Response

201
application/vnd.api+json
escalation path created
data
object
required