Role Management
Create a new role
Creates a new custom role for an organization with specified policies and actors.
post/v1/organizations/{organizationId}/roles
Request
- Base URLhttps://api.clickhouse.cloud
- AuthHTTP basic
Path parameters
organizationId, string uuid required
ID of the requested organization.
Request body
Role Create Request required
name, string required
Name of the role
actors, string[] required
List of actor resource IDs to assign to this role (e.g., ["user/uuid", "apiKey/uuid"])
policies, RBACPolicy Create Request[] required
List of policies to create for this role
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.