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

# Add role

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

## Path parameters

- `group-id` string, required

## Request body

- AddRoleRequest
  - `roleName` string
  - `domain` string

## Response `200`

Role insert 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/post.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)
