Roles
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
No content
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.
normal
Enum that represents the type of a role.
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.