---
title: "Add a new role to the store"
method: POST
path: "/v1/roles.json"
tags: ["roles"]
---

# Add a new role to the store

`POST /v1/roles.json`

Created a role

## Query parameters

- `token` string, required

## Request body

- object
  - `name` string

## Response `200`

successful operation

- object
  - `id` integer

## Other responses

- `405` — Invalid input

## Changes

- **2017-05-25** `5b98cb916342` — 1 info
  - api operation id `addRole` removed and replaced with ``
- **2016-04-26** `5d7a4c3eadce` — 1 info
  - api operation id `addRole` was added

[Change history](https://skmtc.dev/restyaplatform/apis/restyaboard/changes/v1/roles.json/post.md)

---

[API](https://skmtc.dev/restyaplatform/apis/restyaboard.md) · [All operations](https://skmtc.dev/restyaplatform/apis/restyaboard/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/restyaplatform/restyaboard/revisions/bfc753befdbe/schema)
