@@ -36,7 +36,7 @@ async def validate_email_and_add_invited_user(
3636 email : str ,
3737 display_name : str ,
3838 password : str ,
39- admin_token : str ,
39+ optscale_cluster_secret : str ,
4040) -> dict | Exception :
4141 """
4242 It adds a new user to OptScale ONLY if an invitation has been
@@ -49,7 +49,7 @@ async def validate_email_and_add_invited_user(
4949 :param email: the email address of the invited user
5050 :param display_name: The user's name to add
5151 :param password: The user's password to add
52- :param admin_token : The Secret API Key required to run this operation
52+ :param optscale_cluster_secret : The Secret API Key required to run this operation
5353 :return:
5454 A dict like
5555 {
@@ -78,7 +78,7 @@ async def validate_email_and_add_invited_user(
7878 email = email ,
7979 display_name = display_name ,
8080 password = password ,
81- admin_api_key = admin_token ,
81+ admin_api_key = optscale_cluster_secret ,
8282 verified = False ,
8383 )
8484 return response
@@ -89,7 +89,7 @@ async def add_new_user(
8989 email : str ,
9090 display_name : str ,
9191 password : str ,
92- admin_token : str ,
92+ optscale_cluster_secret : str ,
9393) -> dict | Exception :
9494 """
9595 It adds a new user to OptScale. The new user will be already verified
@@ -98,7 +98,7 @@ async def add_new_user(
9898 :param email: The user's email address
9999 :param display_name: The user's name to add
100100 :param password: The user's password to add
101- :param admin_token : The Secret API Key required to run this operation
101+ :param optscale_cluster_secret : The Secret API Key required to run this operation
102102 :return: A dict like
103103 {
104104 "created_at": 1737449293,
@@ -121,7 +121,7 @@ async def add_new_user(
121121 email = email ,
122122 display_name = display_name ,
123123 password = password ,
124- admin_api_key = admin_token ,
124+ admin_api_key = optscale_cluster_secret ,
125125 verified = True ,
126126 )
127127 return response
0 commit comments