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)", "rules"=>[{"escalationTime"=>"<number>(optional)", "isViaPersonal"=>"<boolean>(optional)", "schedules"=>["<string>(optional)"], "squads"=>["<string>(optional)"], "users"=>["<string>"], "via"=>["<string>", "<string>"]}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;id&quot;:&quot;621db78a0cacf9aeacdcaf60&quot;,&quot;name&quot;:&quot;abc11&quot;,&quot;description&quot;:&quot;desc&quot;,&quot;organization_id&quot;:&quot;60cb200bc9de4a0008d2fc41&quot;,&quot;repetition&quot;:1,&quot;rules&quot;:[{&quot;users&quot;:[&quot;60f12dd3814bef0008c4036e&quot;],&quot;squads&quot;:[],&quot;schedules&quot;:[],&quot;escalationTime&quot;:5,&quot;via&quot;:[]},{&quot;users&quot;:[&quot;60f12dd3814bef0008c4036e&quot;],&quot;squads&quot;:[],&quot;schedules&quot;:[],&quot;escalationTime&quot;:7,&quot;via&quot;:[&quot;Email&quot;]}],&quot;slug&quot;:&quot;abc11&quot;,&quot;owner&quot;:{&quot;id&quot;:&quot;6129c3ddabffee4c428b420d&quot;,&quot;type&quot;:&quot;team&quot;},&quot;access_control&quot;:[]}}