(docs) /user/new

This commit is contained in:
ishaan-jaff 2024-02-03 10:59:06 -08:00
parent c9958eb329
commit 3f2f864cc8
2 changed files with 77 additions and 3 deletions

View file

@ -3008,9 +3008,9 @@ async def new_user(data: NewUserRequest):
if "user_role" in data_json:
user_role = data_json["user_role"]
if user_role is not None:
if user_role not in ["proxy_admin", "app_owner", "app_user"]:
if user_role not in ["admin", "app_owner", "app_user"]:
raise ProxyException(
message=f"Invalid user role, passed in {user_role}. Must be one of 'proxy_admin', 'app_owner', 'app_user'",
message=f"Invalid user role, passed in {user_role}. Must be one of 'admin', 'app_owner', 'app_user'",
type="invalid_user_role",
param="user_role",
code=status.HTTP_400_BAD_REQUEST,