---
title: "Update organization role"
method: PATCH
path: "/v1/organizations/${id}/roles/{role_id}"
tags: ["Organization", "Role"]
---

# Update organization role

`PATCH /v1/organizations/${id}/roles/{role_id}`

Update the organization role by its ID.

## Request body

- object
  - `name` string — Name of the role.
  - `description` string, nullable — Description of the role.

## Response `200`

OK

- Role — A role in the system.
  - `id` string, required — Unique identifier of the role.
  - `name` string, required — Name of the role.
  - `description` string, nullable — Description of the role.
  - `members` string[], required — IDs of the users assigned to the role.
  - `permissions` string[], required — IDs of the permissions assigned to the role.
  - `created_at` string, date-time, required — Date when the organization was created.
  - `updated_at` string, date-time, nullable, required — Date when the organization was updated.

## Other responses

- `400` — Bad request
- `401` — Unauthorized request
- `403` — Forbidden
- `404` — The requested resource not found
- `500` — Internal Server Error

---

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