---
title: "Update Role by ID"
method: PUT
path: "/role/{rid}"
tags: ["Access Management"]
---

# Update Role by ID

`PUT /role/{rid}`

Update a role by ID.

## Path parameters

- `rid` string, uuid, required

## Request body

- RoleEdit
  - `name` string, nullable
  - `email` string, email, nullable
  - `active` boolean, nullable
  - `password` string, nullable
  - `operator` boolean, nullable

## Response `200`

Request fulfilled, document follows

- RoleResponse
  - `id` string, uuid, required
  - `name` string, required
  - `email` string, email, required
  - `active` boolean, required

## Other responses

- `400` — Bad request syntax or unsupported method

## Changes

- **2025-08-08** `696ee83009f6` — 1 info
  - api operation id `RoleRidEditRole` removed and replaced with `24_edit_role`
- **2025-08-06** `82f6f0eba091` — 2 warning, 17 info
  - removed the optional property `error` from the response with the `400` status
  - removed the optional property `operator` from the response with the `200` status
  - api operation id `RoleRidEditRole` was added
  - api tag `Access Management` added
  - …15 more

[Change history](https://skmtc.dev/masumi-network/apis/kodosumi-api/changes/role/:rid/put.md)

---

[API](https://skmtc.dev/masumi-network/apis/kodosumi-api.md) · [All operations](https://skmtc.dev/masumi-network/apis/kodosumi-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/masumi-network/kodosumi-api/revisions/2092ce918678/schema)
