Authorization

Create Assignment

Changed on

Assign a role to a user as a role administrator.

post/api/v1/authz/role-assignments

Request

  • The document declares no server URL.
  • Auth
    • OAuth 2
      Password
      Token URL: api/v1/login
    • or API key in query parameter x-api-key
    • or API key in header x-api-key

Headers

X-Langflow-Operation-IDstring nullable

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

Changes