---
title: "Manage a role's sub-roles"
method: PUT
path: "/{roleId}/sub-roles"
---

# Manage a role's sub-roles

`PUT /{roleId}/sub-roles`

## Request

- Base URL: `https://api.umbrellacost.io/api/v2/user-management/roles`
- URL: `https://api.umbrellacost.io/api/v2/user-management/roles/{roleId}/sub-roles`
- Auth: none declared. Required headers: `Authorization`, `apikey`

## Path parameters

- `roleId` string, required

## Headers

- `Authorization` string, required
- `apikey` string, required

## Request body

- object
  - `subRoleIdsToAdd` string[]
  - `subRoleIdsToRemove` string[]

## Response `200`

Successful operation

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/umbrellacost/apis/user-management-roles-api.md) - [All operations](https://skmtc.dev/umbrellacost/apis/user-management-roles-api/llms.txt) - [OpenAPI document](https://skmtc.dev/umbrellacost/apis/user-management-roles-api/revisions/d4427b9dd512?raw)
