---
title: "create role"
method: POST
path: "/roles"
tags: ["roles"]
---

# create role

`POST /roles`

## Request body

- object
  - `name` string, required
  - `description` string, required

## Response `200`

create role is success

## Other responses

- `400` — create role is failed

## Changes

- **2026-07-17** `d1ec4100a3ee` — 1 info
  - endpoint added
- **2022-04-12** `abbac25b5edd` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation/changes/roles/post.md)

---

[API](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation.md) · [All operations](https://skmtc.dev/wednesday-solutions/apis/node-mongo-express-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/wednesday-solutions/node-mongo-express-documentation/revisions/d1ec4100a3ee/schema)
