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

# POST /roles

`POST /roles`

Creates a new role

## Request body

- CreateRoleRequest — Request body for creating a role
  - `role` string, required — Name of the role

## Response `201`

Success

- RoleSuccessResponse
  - `data` Role, required — Role object
    - `id` string, required — Unique role ID
    - `role` string, required — Name of the role

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `500` — Internal server error

## Changes

- **2026-02-16** `79cd0cd88786` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/fragment-dev/apis/fragment-payments-api/changes/roles/post.md)

---

[API](https://skmtc.dev/fragment-dev/apis/fragment-payments-api.md) · [All operations](https://skmtc.dev/fragment-dev/apis/fragment-payments-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fragment-dev/fragment-payments-api/revisions/249df29a7dfe/schema)
