yasuki_web.auth.admin_create_role#
- async admin_create_role(body, admin=Depends(dependency=<function require_admin>, use_cache=True, scope=None))[source]#
Define a new role (a short lowercase slug) so it can be assigned. Admin-only.
Returns the full role list so the caller can refresh its picker. Creating a role that already exists is a no-op, not an error.