---
title: "Create a new role"
method: POST
path: "/rbac/roles"
tags: ["RBAC"]
---

# Create a new role

`POST /rbac/roles`

Creates a new role.

## Request body

- object
  - `name` string
  - `displayName` string
  - `description` string

## Response `201`

Role created successfully.

## Other responses

- `400` — Invalid request body.
- `409` — A role with this name already exists.
- `500` — Failed to create role.

---

[API](https://skmtc.dev/termix/apis/termix-api.md) · [All operations](https://skmtc.dev/termix/apis/termix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/termix/termix-api/revisions/f4ef343eff1b/schema)
