---
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

---

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