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

# Update custom user role

`PUT /api/{cloudId}/v1/roles/{identifier}`

Updates the details of a custom user role. 
 - The user should have admin role and custom user role right.

## Path parameters

- `identifier` string, required — Id of the custom user role.

## Query parameters

- `identifierType` 'id' | 'name' — Type of the identifier.

## Request body

- CustomUserRoleUpdateRequest
  - `id` string — The id of the custom user role.
  - `name` string — 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

- `403` — Returned if the request user does not have permission to update a custom user role.
- `404` — Returned if the role with the identifier cannot be found.
- `422` — Returned if the requested identifier doesn't belong to 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/versions/ed65f017bcb8/schema)
