v5

latestOpenAPI 3.1.0MIT Licenseraw.githubusercontent.com2026-08-0119517.3 KB
System Roles

Modify system roles for a specific user

Add or remove a system role for a specific user. The request body must contain exactly one of 'role_addition' or 'role_removal' fields, but not both.

patch/api/v1alpha/system_roles/{user_id}

Path parameters

integer required

User ID

OR
string required

Username

User ID (integer) or username (string) to modify system roles for

Request body

OR

Response

System role successfully modified

action'added' | 'removed'

The action that was performed

role'developer' | 'billing_manager'

The role that was modified

userstring

Username of the affected user