Create Team Role

POST {{baseUrl}}/teams/:teamID/roles

Add team's role to the team with given ability if not exists. Returns the role object in response.
Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Request Body

{"abilities"=>{"escalation_policies"=>{"read-escalation-policies"=>true}, "postmortems"=>{"read-postmortems"=>true}, "schedules"=>{"read-schedules"=>true}, "services"=>{"read-services"=>true}, "squads"=>{"read-squads"=>true}, "status_pages"=>{"read-status-pages"=>true}}, "name"=>"userr"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: Created

{"data":[{"id":"6129ac15518568defa927947","name":"Manage Team","slug":"manage-team","default":true,"abilities":{"teams":{"delete-teams":true,"read-teams":true,"update-teams":true}}},{"id":"6129ac15518568defa927948","name":"Admin","slug":"admin","default":false,"abilities":{"escalation_policies":{"create-escalation-policies":true,"delete-escalation-policies":true,"read-escalation-policies":true,"update-escalation-policies":true},"postmortems":{"create-postmortems":true,"delete-postmortems":true,"read-postmortems":true,"update-postmortems":true},"schedules":{"create-schedules":true,"delete-schedules":true,"read-schedules":true,"update-schedules":true},"services":{"create-services":true,"delete-services":true,"read-services":true,"update-services":true},"squads":{"create-squads":true,"delete-squads":true,"read-squads":true,"update-squads":true},"status_pages":{"create-status-pages":true,"delete-status-pages":true,"read-status-pages":true,"update-status-pages":true}}},{"id":"6129ac15518568defa927949","name":"User","slug":"user","default":false,"abilities":{"escalation_policies":{"read-escalation-policies":true,"update-escalation-policies":true},"postmortems":{"read-postmortems":true,"update-postmortems":true},"schedules":{"read-schedules":true,"update-schedules":true},"services":{"read-services":true,"update-services":true},"squads":{"read-squads":true,"update-squads":true},"status_pages":{"read-status-pages":true,"update-status-pages":true}}},{"id":"6129ac15518568defa92794a","name":"Observer","slug":"observer","default":false,"abilities":{"escalation_policies":{"read-escalation-policies":true},"postmortems":{"read-postmortems":true},"schedules":{"read-schedules":true},"services":{"read-services":true},"squads":{"read-squads":true},"status_pages":{"read-status-pages":true}}}]}