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

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;id&quot;:&quot;637ca5ab5b2531efec41f99c&quot;,&quot;name&quot;:&quot;advchgadvchga&quot;,&quot;description&quot;:&quot;description&quot;,&quot;organization_id&quot;:&quot;5d1353590086040003ea889e&quot;,&quot;repetition&quot;:0,&quot;repeat_after&quot;:0,&quot;rules&quot;:[{&quot;escalationTime&quot;:0,&quot;via&quot;:[&quot;Email&quot;],&quot;roundrobin_enabled&quot;:false,&quot;roundrobin_next_index&quot;:0,&quot;entities&quot;:[{&quot;id&quot;:&quot;60f12dd3814bce0008c4036e&quot;,&quot;type&quot;:&quot;user&quot;}],&quot;escalate_within_roundrobin&quot;:false,&quot;repetition&quot;:0,&quot;repeat_after&quot;:0}],&quot;slug&quot;:&quot;advchgadvchga&quot;,&quot;enable_incident_reminders&quot;:false,&quot;incident_reminder_rules&quot;:null,&quot;enable_incident_retrigger&quot;:false,&quot;retrigger_after&quot;:0,&quot;owner&quot;:{&quot;id&quot;:&quot;6129a901518568deba925231&quot;,&quot;type&quot;:&quot;team&quot;},&quot;access_control&quot;:[]}}