Skip to main content
POST
Error

Authorizations

fastapiusersauth
string
cookie
required

Body

application/json

Create schema for a user role assignment.

user_id
string<uuid>
required

User ID to assign role to

role_id
string<uuid>
required

Role ID to assign to the user

workspace_id
string<uuid> | null

Workspace ID for workspace-level assignment. If None, creates org-wide assignment.

Response

Successful Response

Read schema for a user role assignment with user and role details.

id
string<uuid>
required
organization_id
string<uuid>
required
user_id
string<uuid>
required
role_id
string<uuid>
required
assigned_at
string<date-time>
required
user_email
string
required
role_name
string
required
workspace_id
string<uuid> | null
assigned_by
string<uuid> | null
workspace_name
string | null