---
title: "Update role"
method: PATCH
path: "/groups/{group-id}/roles"
tags: ["Roles"]
---

# Update role

`PATCH /groups/{group-id}/roles`

## Path parameters

- `group-id` string, required

## Request body

- UpdateRoleRequest
  - `userId` string
  - `removedRoles` string[]
  - `addedRoles` string[]

## Response `200`

Role update status

- SuccessStatus
  - `success` boolean — Success status

## Other responses

- `default` — Unexpected error

## Changes

- **2022-03-14** `cfe3327040c8` — 1 info
  - endpoint added
- **2021-01-06** `cbb5695aec22` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wso2/apis/cluster-aware-mi-dashboard/changes/groups/:group-id/roles/patch.md)

---

[API](https://skmtc.dev/wso2/apis/cluster-aware-mi-dashboard.md) · [All operations](https://skmtc.dev/wso2/apis/cluster-aware-mi-dashboard/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wso2/cluster-aware-mi-dashboard/revisions/1d5e9cc062de/schema)
