---
title: "Update a role"
method: PUT
path: "/rbac/roles/{id}"
tags: ["RBAC"]
---

# Update a role

`PUT /rbac/roles/{id}`

Updates a role by its ID.

## Path parameters

- `id` integer, required

## Request body

- object
  - `displayName` string
  - `description` string
  - `permissions` string[] — Permission strings validated against the permissions catalog (wildcards like hosts.* and * allowed).

## Response `200`

Role updated successfully.

## Other responses

- `400` — Invalid request body or role ID.
- `404` — Role not found.
- `500` — Failed to update role.

---

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