---
title: "CreateRole"
method: POST
path: "/api/roles"
tags: ["Roles"]
---

# CreateRole

`POST /api/roles`

## Request body

- RoleCreate
  - `name` string, required

## Response `201`

Document created, URL follows

- Role
  - `createdAt` string, date-time, required
  - `id` string, uuid, required
  - `name` string, required
  - `slug` string, required
  - `updatedAt` string, date-time, required

## Other responses

- `400` — Bad request syntax or unsupported method

---

[API](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template.md) · [All operations](https://skmtc.dev/litestar-org/apis/litestar-fullstack-template/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litestar-org/litestar-fullstack-template/revisions/e5e7606282ec/schema)
