---
title: "Add Role"
method: POST
path: "/role"
tags: ["Access Management"]
---

# Add Role

`POST /role`

Add a new role to the system.

## Request body

- RoleCreate
  - `name` string, required
  - `email` string, email, required
  - `password` string, required
  - `operator` boolean

## Response `201`

Document created, URL follows

- RoleResponse
  - `id` string, uuid, required
  - `name` string, required
  - `email` string, email, required
  - `active` boolean, required

## Other responses

- `400` — Bad request syntax or unsupported method

## Changes

- **2025-08-08** `696ee83009f6` — 1 info
  - api operation id `RoleAddRole` removed and replaced with `20_add_role`
- **2025-08-06** `82f6f0eba091` — 1 breaking, 2 warning, 8 info
  - removed the success response with the status `200`
  - removed the request property `active`
  - removed the optional property `error` from the response with the `400` status
  - api operation id `RoleAddRole` was added
  - …7 more

[Change history](https://skmtc.dev/masumi-network/apis/kodosumi-api/changes/role/post.md)

---

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