Escalation Policies
- Escalation Policies are independent objects. The Team object is responsible for assigning itself a primary Schedule and an Escalation Policy.
Property | Type | Description |
---|---|---|
name | string | The name of the escalation policy. (Required) |
repeat | integer | |
reassign_team_ids | string[] | |
reassign_account_user_ids | string[] | An array of Account User IDs this escalation reassigns to. |
team_ids | string[] | The team IDs currently using this escalation policy. |
escalation_layers | :account_id, :id, :prefix_id, :layer, :timeout, :timeout_unit, :color_hex |
POST https://api.pagertree.com/api/v4/escalation_policies
def escalation_policy_params
params.permit(
:name,
:repeat,
reassign_team_ids: [],
reassign_account_user_ids: [],
escalation_layers_attributes: [
:id,
:layer,
:timeout,
:timeout_unit,
:color_hex,
:_destroy
]
)
end
- name
GET https://api.pagertree.com/api/v4/escalation_policies/:id
PUT https://api.pagertree.com/api/v4/escalation_policies/:id
DELETE https://api.pagertree.com/api/v4/escalation_policies/:id
GET https://api.pagertree.com/api/v4/escalation_policies
Last modified 5mo ago