Create Escalation Policies
POST {{baseUrl}}/escalation-policies
Add escalation policy to the organization. Returns the escalation policy object in response.
Requires access_token
as a Bearer {{token}}
in the Authorization
header with user-write
scope.
Request Body
{"description"=>"<string>(optional)", "name"=>"<string>", "owner_id"=>"<string>(owner_id represents team_id)", "repetition"=>"<number>(optional)", "repeat_after"=>"<number>(optional)", "rules"=>[{"escalationTime"=>"<number>(optional)", "isViaPersonal"=>"<boolean>(optional)", "entities"=>[{"id"=>"user's ObjectId", "type"=>"user"}], "via"=>["<string>", "<string>"]}], "enable_incident_reminders"=>false, "incident_reminder_rules"=>[], "enable_incident_retrigger"=>false, "retrigger_after"=>0, "entity_owner"=>{"id"=>"6363af3de7ca930b5a4edc9d", "type"=>"<string>"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | null | ||
Content-Type | string |
RESPONSES
status: Created
{"data":{"id":"637ca5ab5b2531efec41f99c","name":"advchgadvchga","description":"description","organization_id":"5d1353590086040003ea889e","repetition":0,"repeat_after":0,"rules":[{"escalationTime":0,"via":["Email"],"roundrobin_enabled":false,"roundrobin_next_index":0,"entities":[{"id":"60f12dd3814bce0008c4036e","type":"user"}],"escalate_within_roundrobin":false,"repetition":0,"repeat_after":0}],"slug":"advchgadvchga","enable_incident_reminders":false,"incident_reminder_rules":null,"enable_incident_retrigger":false,"retrigger_after":0,"owner":{"id":"6129a901518568deba925231","type":"team"},"access_control":[]}}