v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01144108427.9 KB
Authorization

Create Assignment

Assign a role to a user. Superuser-only.

post/api/v1/authz/role-assignments

Request body

domain_idstring uuid nullable

Required when domain_type is org/workspace/project; must be null for global.

domain_type'global' | 'org' | 'workspace' | 'project'

Domain scope of the assignment. global is unscoped (no domain_id); org/workspace/project require a matching domain_id.

role_idstring uuid required
user_idstring uuid required

Response

Successful Response

assigned_atstring date-time required
assigned_bystring uuid nullable required
domain_idstring uuid nullable required
domain_typestring required
idstring uuid required
role_idstring uuid required
user_idstring uuid required