---
title: "Update Role"
method: PUT
path: "/cabinet/admin/rbac/roles/{role_id}"
tags: ["Admin RBAC"]
---

# Update Role

`PUT /cabinet/admin/rbac/roles/{role_id}`

## Request

- The document declares no server URL.
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/docs/cabinet/admin/rbac/roles/:role_id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing admin role.

## Path parameters

- `role_id` integer, required

## Request body

- RoleUpdateRequest: Update role fields (all optional).
  - `name` string, nullable
  - `description` string, nullable
  - `level` integer, nullable
  - `permissions` string[], nullable
  - `color` string, nullable
  - `icon` string, nullable
  - `is_active` boolean, nullable

## Response `200`

Successful Response

- RoleResponse: Admin role with user count.
  - `id` integer, required
  - `name` string, required
  - `description` string, nullable
  - `level` integer, required
  - `permissions` string[]
  - `color` string, nullable
  - `icon` string, nullable
  - `is_system` boolean, required
  - `is_active` boolean, required
  - `user_count` integer
  - `created_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api.md) - [All operations](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bedolagam/apis/remnawave-bot-admin-api/revisions/2360876ff9c5?raw)
