---
title: "Create custom user role"
method: POST
path: "/api/{cloudId}/v1/roles"
tags: ["Custom user roles"]
---

# Create custom user role

`POST /api/{cloudId}/v1/roles`

Creates a new custom user role. 
 - The user should have admin role and custom user role right.

## Request body

- CustomUserRoleCreateRequest
  - `name` string, required — The name of the custom user role.
  - `grantedRights` string[] — The list of rights to grant to the custom user role.
  - `disallowedRights` string[] — The list of rights to disallow to the custom user role.

## Response `200`

Returned if the request is successful.

- CustomUserRoleSuccessResponse
  - `message` string
  - `data` SimpleData
    - `id` string
    - `name` string

## Other responses

- `400` — Returned if an field is not properly set.
- `403` — Returned if the request user does not have permission to create a custom user role.

---

[API](https://skmtc.net/atlassian/apis/jsm-operations-api.md) · [All operations](https://skmtc.net/atlassian/apis/jsm-operations-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/jsm-operations-api/revisions/ed65f017bcb8/schema)
