---
title: "Create a new role with permissions"
method: POST
path: "/api/roles"
tags: ["Roles"]
---

# Create a new role with permissions

`POST /api/roles`

Creates a new role for the current tenant with the specified permissions. Admin-only access.

## Request body

- CreateRoleRequest — Request for creating a new role.
  - `name` string, required — The name of the role to create.
  - `description` string, nullable — The description of the role.
  - `permissions` string[], required — The list of permission names to assign to the role.

## Response `201`

Role created successfully.

- CreateRoleResponse — Response for creating a new role.
  - `message` string

## Other responses

- `400` — Invalid request or role creation failed.
- `401` — Unauthorized
- `403` — Forbidden

## Changes

- **2025-11-21** `50eff5014b78` — 1 info
  - endpoint added
- **2025-03-24** `fbc3fe6ecbf1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/changes/api/roles/post.md)

---

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