---
title: "Update Organization Role"
method: PUT
path: "/v1/organization/roles/{roleId}"
tags: ["Organization Roles"]
---

# Update Organization Role

`PUT /v1/organization/roles/{roleId}`

## Request

- Base URL: `https://api.confident-ai.com`
- URL: `https://api.confident-ai.com/v1/organization/roles/{roleId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/docs/v1/organization/roles/:roleId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates a custom organization role's name, description, or policies. Global roles cannot be modified.

## Path parameters

- `roleId` string, required

## Request body

- CreateOrUpdateRole
  - `name` string, required: Name of the role (must be unique within the organization and cannot be a system role name)
  - `description` string, nullable: Optional description of the role
  - `policyIds` string[], required: The ids of the policies to attach to this role

## Response `200`

- RoleResponse
  - `success` boolean, required: Indicates if the request was successful
  - `data` object, required
    - `role` Role
      - `id` string, required: Unique identifier for the role
      - `name` string, required: Name of the role
      - `description` string, nullable: Optional description of the role
      - `organizationId` string, nullable: The owning organization id, or `null` for global, system-defined roles that are available to every organization.
      - `policies` NamedRef[]: The policies attached to this role
        - `id` string, required: Unique identifier
        - `name` string, required: Name

## Changes

> 54 revisions in range; 3 not diffed.

- **2026-05-31** `173563ada468`: 2 info
  - api tag `Organization Roles` added
  - api tag `Roles` removed
- **2026-05-31** `78a7dd1b6b48`: 1 info
  - endpoint added
- **2026-05-31** `d493eef38a58`: 1 breaking
  - api path removed without deprecation
- **2026-05-31** `78a7dd1b6b48`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/changes/v1/organization/roles/:roleId/put.md)

---

[API](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api.md) - [All operations](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/confident-ai/apis/confident-ai-metrics-api/revisions/95cdde71b65e?raw)
