---
title: "Create Role"
method: POST
path: "/v1/roles"
---

# Create Role

`POST /v1/roles`

## Headers

- `Accept` string, required
- `Content-Type` string, required

## Request body

- object
  - `name` string, required — Name of the created role. Spaces not allowed. Max 20 characters.
  - `permissions_ids` string[], required — IDs of the permissions for the new role. To obtain available IDs, execute a GET request at the /v1/permissions endpoint.
  - `description` string — Description of the created role. Max 255 characters.
  - `display_name` string — Display name of the created role. Max 100 characters.

## Response `200`

200

- object
  - `data` object
    - `object` string
    - `id` string
    - `name` string
    - `description` unknown
    - `display_name` string
    - `level` integer
    - `created_at` integer
    - `permissions` object
      - `data` object[]
        - `object` string
        - `id` string
        - `name` string
        - `description` string
        - `display_name` string
        - `permission_type` string
  - `meta` object
    - `include` unknown[]
      - unknown
    - `custom` unknown[]
      - unknown

## Other responses

- `422` — 422

---

[API](https://skmtc.net/payarc/apis/payarc-sandbox.md) · [All operations](https://skmtc.net/payarc/apis/payarc-sandbox/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/payarc/payarc-sandbox/versions/face82bdd778/schema)
