---
title: "Create role"
method: POST
path: "/v1/roles"
tags: ["Security"]
---

# Create role

`POST /v1/roles`

Create a role.

## Request body

- Role — Role defines a role in the system.
  - `name` string — The name of the role.

## Response `201`

Role created

- CreateRoleResponse — CreateRoleResponse is the response for CreateRole.
  - `role` Role — Role defines a role in the system.
    - `name` string — The name of the role.

## Other responses

- `401` — Unauthenticated.
- `500` — Internal Server Error. Reach out to support.
- `default` — An unexpected error response.

---

[API](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api.md) · [All operations](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redpanda-data/redpanda-cloud-data-plane-api/revisions/7eef0bcc42e7/schema)
