---
title: "Update organization role"
method: PATCH
path: "/api/organization-roles/{id}"
tags: ["Organization roles"]
---

# Update organization role

`PATCH /api/organization-roles/{id}`

Update organization role details by ID with the given data.

## Path parameters

- `id` string, required

## Request body

- object
  - `tenantId` string
  - `id` string
  - `name` string — The updated name of the organization role. It must be unique within the organization template.
  - `description` string, nullable — The updated description of the organization role.
  - `type` 'User' | 'MachineToMachine'

## Response `200`

The organization role was updated successfully.

- object
  - `tenantId` string, required
  - `id` string, required
  - `name` string, required
  - `description` string, nullable, required
  - `type` 'User' | 'MachineToMachine', required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — The organization role name is already in use.

---

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