---
title: "Update organization role"
method: PATCH
path: "/v1/roles/{roleId}"
tags: ["Roles"]
---

# Update organization role

`PATCH /v1/roles/{roleId}`

Updates a custom organization role and propagates role name changes to members and pending invitations.

## Path parameters

- `roleId` string, typeid, required

## Request body

- object
  - `roleName` string
  - `permission` object

## Response `200`

Organization role updated successfully.

- SuccessResponse
  - `success` true, required

## Other responses

- `400` — The role update request was invalid.
- `401` — The caller must be signed in to update organization roles.
- `403` — Only workspace owners and super-admins can update custom roles.
- `404` — The role or organization could not be found.

---

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