Role Management

Update a role

Updates an existing custom role. System roles cannot be updated. All fields are optional - only provided fields will be updated.

patch/v1/organizations/{organizationId}/roles/{roleId}

Request

  • Base URL
    https://api.clickhouse.cloud
  • Auth
    HTTP basic

Path parameters

organizationId, string uuid required

ID of the requested organization.

roleId, string uuid required

ID of the requested role.

Request body

RoleUpdateRequest required
name, string

New name for the role

actors, string[]

New list of actor resource IDs (replaces existing actors)

policies, RBACPolicyCreateRequest[]

New list of policies (replaces existing policies)

Response

Successful response

object required
status, number

HTTP status code.

requestId, string uuid

Unique id assigned to every request. UUIDv4

result, RBACRole

Example response

{
  "status": 200,
  "result": {
    "createdAt": "2026-03-26T20:51:16Z",
    "updatedAt": "2026-03-26T21:04:52Z"
  }
}

Changes

No recorded changes to this operation across all 35 revisions of this API.