---
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

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Error
- `502` — Bad Gateway

---

[API](https://skmtc.net/opencelium/apis/opencelium-api.md) · [All operations](https://skmtc.net/opencelium/apis/opencelium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opencelium/opencelium-api/versions/82ed767ffb65/schema)
