---
title: "Update role"
method: PATCH
path: "/access-control/roles/{role_id}"
tags: ["Access Control"]
---

# Update role

`PATCH /access-control/roles/{role_id}`

Updates a role's attributes.

## Path parameters

- `role_id` string, required

## Request body

- UpdateRoleRequest
  - `description` string, nullable
  - `name` string, nullable
  - `weight` integer, nullable

## Response `200`

OK

- UpdateRoleResponse
  - `role` Role, required
    - `created_at` string, date-time, required
    - `description` string, nullable
    - `id` string, required
    - `is_system` boolean, required
    - `name` string, required
    - `updated_at` string, date-time, required
    - `weight` integer, required

## Changes

- **2026-07-09** `dad8e2644615` — 1 info
  - endpoint added
- **2026-07-08** `d2f9387037c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/authula/apis/authula-api/changes/access-control/roles/:role_id/patch.md)

---

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