---
title: "Create Role"
method: POST
path: "/"
---

# Create Role

`POST /`

## Request

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

## Headers

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

## Request body

- object
  - `role` object, required
    - `id` string
    - `displayName` string, required
    - `description description` string
    - `subRoles` object[]
      - `id` string
      - `displayName` string
    - `permissions` object
      - `permissions` object[]
        - `category` string, required
        - `actionPermissions` object
          - `action` string
          - `permissions` string
      - `isPartialData` boolean
    - `isPartialData` boolean

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