---
title: "Creates new User Role"
method: POST
path: "/role"
tags: ["User Role(Group)"]
---

# Creates new User Role

`POST /role`

## Request body

- UserRoleResource
  - `groupId` integer
  - `name` string
  - `description` string
  - `icon` string
  - `components` ComponentResource[]
    - `componentId` integer
    - `name` string
    - `permissions` string[]

## Response `200`

User Role has been successfully created

- UserRoleResource[]
  - `groupId` integer
  - `name` string
  - `description` string
  - `icon` string
  - `components` ComponentResource[]
    - `componentId` integer
    - `name` string
    - `permissions` string[]

## Other responses

- `401` — Unauthorized
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.dev/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.dev/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc.dev/opencelium/apis/opencelium-api/revisions/af354704e87e?raw)
