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

# Create Role

`POST /api/v1/roles`

Create Role by json config

## Request body

- D7yIoDragonflyV2ManagerTypesCreateRoleRequest
  - `permissions` D7yIoDragonflyV2ManagerPermissionRbacPermission[], required
    - `action` 'read' | '*', required
    - `object` string, required
  - `role` string, required

## Response `200`

OK

## Other responses

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

---

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