---
title: "Update Role"
method: PATCH
path: "/api/v1/authz/roles/{role_id}"
tags: ["Authorization"]
---

# Update Role

`PATCH /api/v1/authz/roles/{role_id}`

Update fields on a custom role. System roles are read-only.

## Path parameters

- `role_id` string, uuid, required

## Request body

- RoleUpdate — Payload for updating an authz_role row (PATCH semantics — only set fields apply).
  - `description` string, nullable
  - `name` string, nullable
  - `parent_role_id` string, uuid, nullable
  - `permissions` string[], nullable

## Response `200`

Successful Response

- RoleRead — Serialized authz_role row returned by the API.
  - `created_at` string, date-time, required
  - `created_by` string, uuid, nullable, required
  - `description` string, nullable, required
  - `id` string, uuid, required
  - `is_system` boolean, required
  - `name` string, required
  - `parent_role_id` string, uuid, nullable, required
  - `permissions` string[], required
  - `updated_at` string, date-time, required
  - `workspace_id` string, uuid, nullable, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-08** `a5c4fa6a88f7` — 1 info
  - endpoint added
- **2025-10-16** `9bd3e81318d7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/authz/roles/:role_id/patch.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/22962dc5e81b/schema)
