Update Team Role

PUT {{baseUrl}}/teams/:teamID/roles/:roleID

Update team's role abilities and name.
Requires access_token as a Bearer {{token}} in the Authorization header with user-write scope.

Request Body

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

HEADERS

KeyDatatypeRequiredDescription
Authorizationnull
Content-Typestring

RESPONSES

status: OK

{"data":{"id":"62146f61baa215e392ea0590","created_at":"2022-02-22T05:06:41.37Z","updated_at":"2022-02-22T05:06:41.37Z","created_by":"60f12dd3814bef0008c4036e","organization_id":"60cb200bc9de4a0008d2fc41","name":"abcccc","description":"","slug":"abcccc","members":[{"user_id":"60f12dd3814bef0008c4036e","role_ids":["62146f61baa215e392ea0591","62146f61baa215e392ea0592"],"abilities":{}}],"roles":[{"id":"62146f61baa215e392ea0591","name":"Manage Team","slug":"manage-team","default":true,"abilities":{"teams":{"delete-teams":true,"read-teams":true,"update-teams":true}}},{"id":"62146f61baa215e392ea0592","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":"62146f61baa215e392ea0593","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":"62146f61baa215e392ea0594","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}}},{"id":"6214e1561db3553d5b24f583","name":"userr","slug":"userr","default":false,"abilities":{"escalation_policies":{"create-escalation-policies":true,"read-escalation-policies":false,"update-escalation-policies":false},"postmortems":{"create-postmortems":false,"delete-postmortems":true,"read-postmortems":false,"update-postmortems":false},"schedules":{"create-schedules":false,"delete-schedules":false,"read-schedules":true,"update-schedules":false},"services":{"create-services":false,"delete-services":false,"read-services":true,"update-services":false},"squads":{"create-squads":false,"delete-squads":false,"read-squads":true,"update-squads":false},"status_pages":{"create-status-pages":false,"delete-status-pages":false,"read-status-pages":true,"update-status-pages":false}}}],"default":false}}