---
title: "Update Role"
method: PUT
path: "/api/permissions/roles/{id}"
tags: ["Permissions"]
---

# Update Role

`PUT /api/permissions/roles/{id}`

Updates an existing permissions role's name and action set.

The update is a **full replacement** of the role definition.

> 🚧 Built-in system roles (such as Admin and Member) cannot be updated.
> Attempting to modify a system role returns an error.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Polytomic-Version` string

## Request body

- UpdateRoleRequest
  - `name` string, required
  - `organization_id` string, uuid, nullable

## Response `200`

OK

- RoleResponseEnvelope
  - `data` RoleResponse
    - `id` string, uuid
    - `name` string
    - `organization_id` string, uuid
    - `system` boolean

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/polytomic/apis/polytomic-api.md) · [All operations](https://skmtc.net/polytomic/apis/polytomic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polytomic/polytomic-api/versions/5e9bcd4cfb2d/schema)
