Roles
Endpoint to create a role.
Args: role: The role to create. user: The authenticated user. rbac: RBAC component.
Raises: IllegalOperationError: If the role is an organization role. IllegalOperationError: If the role has no permissions.
Returns: The created role.
Model for creating roles.
Scope levels.
Enum that represents the type of a role.
normalPossible values: Successful Response
Validation Error
Endpoint to get a role.
Args: role_id: ID of the role to get. user: The authenticated user. rbac: RBAC component.
Returns: The role.
Successful Response
Validation Error
Endpoint to delete a role.
Args: role_id: ID of the role to delete. user: The authenticated user. rbac: RBAC component.
Raises: IllegalOperationError: If the role is system managed.
Successful Response
Validation Error
No content
Endpoint to update a role.
Args: role_id: ID of the role to update. update: The role update. user: The authenticated user. rbac: RBAC component.
Raises: IllegalOperationError: If the role has no permissions.
Returns: The updated role.
Model for updating roles.
Successful Response
Validation Error
Last updated
Was this helpful?