---
title: "Create Role"
method: POST
path: "/roles"
tags: ["Role"]
---

# Create Role

`POST /roles`

Create Role by json config

## Request body

- TypesCreateRoleRequest
  - `permissions` RbacPermission[], required
    - `action` string, required
    - `object` string, required
  - `role` string, required

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

## Changes

- **2021-11-29** `f61cd344dca7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager/changes/roles/post.md)

---

[API](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager.md) · [All operations](https://skmtc.dev/dragonflyoss/apis/dragonfly-manager/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dragonflyoss/dragonfly-manager/revisions/f61cd344dca7/schema)
