11#
2- # Copyright (c) 2018-2023 , FusionAuth, All Rights Reserved
2+ # Copyright (c) 2018-2025 , FusionAuth, All Rights Reserved
33#
44# Licensed under the Apache License, Version 2.0 (the "License");
55# you may not use this file except in compliance with the License.
@@ -748,7 +748,7 @@ def deactivate_user_action(self, user_action_id):
748748 @deprecated ("This method has been renamed to deactivate_users_by_ids, use that method instead." )
749749 def deactivate_users (self , user_ids ):
750750 """
751- Deactivates the users with the given ids .
751+ Deactivates the users with the given Ids .
752752
753753 Attributes:
754754 user_ids: The ids of the users to deactivate.
@@ -762,7 +762,7 @@ def deactivate_users(self, user_ids):
762762
763763 def deactivate_users_by_ids (self , user_ids ):
764764 """
765- Deactivates the users with the given ids .
765+ Deactivates the users with the given Ids .
766766
767767 Attributes:
768768 user_ids: The ids of the users to deactivate.
@@ -1205,8 +1205,8 @@ def delete_user_with_request(self, user_id, request):
12051205 @deprecated ("This method has been renamed to delete_users_by_query, use that method instead." )
12061206 def delete_users (self , request ):
12071207 """
1208- Deletes the users with the given ids , or users matching the provided JSON query or queryString.
1209- The order of preference is ids , query and then queryString, it is recommended to only provide one of the three for the request.
1208+ Deletes the users with the given Ids , or users matching the provided JSON query or queryString.
1209+ The order of preference is Ids , query and then queryString, it is recommended to only provide one of the three for the request.
12101210
12111211 This method can be used to deactivate or permanently delete (hard-delete) users based upon the hardDelete boolean in the request body.
12121212 Using the dryRun parameter you may also request the result of the action without actually deleting or deactivating any users.
@@ -1221,8 +1221,8 @@ def delete_users(self, request):
12211221
12221222 def delete_users_by_query (self , request ):
12231223 """
1224- Deletes the users with the given ids , or users matching the provided JSON query or queryString.
1225- The order of preference is ids , query and then queryString, it is recommended to only provide one of the three for the request.
1224+ Deletes the users with the given Ids , or users matching the provided JSON query or queryString.
1225+ The order of preference is Ids , query and then queryString, it is recommended to only provide one of the three for the request.
12261226
12271227 This method can be used to deactivate or permanently delete (hard-delete) users based upon the hardDelete boolean in the request body.
12281228 Using the dryRun parameter you may also request the result of the action without actually deleting or deactivating any users.
@@ -1744,7 +1744,7 @@ def modify_action(self, action_id, request):
17441744 action.
17451745
17461746 Attributes:
1747- action_id: The Id of the action to modify. This is technically the user action log id .
1747+ action_id: The Id of the action to modify. This is technically the user action log Id .
17481748 request: The request that contains all the information about the modification.
17491749 """
17501750 return self .start ().uri ('/api/user/action' ) \
@@ -1767,16 +1767,16 @@ def passwordless_login(self, request):
17671767
17681768 def patch_api_key (self , key_id , request ):
17691769 """
1770- Updates an authentication API key by given id
1770+ Updates an API key with the given Id.
17711771
17721772 Attributes:
1773- key_id: The Id of the authentication key. If not provided a secure random api key will be generated.
1774- request: The request object that contains all the information needed to create the APIKey .
1773+ key_id: The Id of the API key. If not provided a secure random api key will be generated.
1774+ request: The request object that contains all the information needed to create the API key .
17751775 """
17761776 return self .start ().uri ('/api/api-key' ) \
17771777 .url_segment (key_id ) \
17781778 .body_handler (JSONBodyHandler (request )) \
1779- .post () \
1779+ .patch () \
17801780 .go ()
17811781
17821782 def patch_application (self , application_id , request ):
@@ -2285,7 +2285,7 @@ def reindex(self, request):
22852285
22862286 def remove_user_from_family (self , family_id , user_id ):
22872287 """
2288- Removes a user from the family with the given id .
2288+ Removes a user from the family with the given Id .
22892289
22902290 Attributes:
22912291 family_id: The Id of the family to remove the user from.
@@ -2340,7 +2340,7 @@ def resend_registration_verification(self, email, application_id):
23402340
23412341 def retrieve_api_key (self , key_id ):
23422342 """
2343- Retrieves an authentication API key for the given id
2343+ Retrieves an authentication API key for the given Id.
23442344
23452345 Attributes:
23462346 key_id: The Id of the API key to retrieve.
@@ -2407,7 +2407,7 @@ def retrieve_application(self, application_id=None):
24072407 Retrieves the application for the given Id or all the applications if the Id is null.
24082408
24092409 Attributes:
2410- application_id: (Optional) The application id .
2410+ application_id: (Optional) The application Id .
24112411 """
24122412 return self .start ().uri ('/api/application' ) \
24132413 .url_segment (application_id ) \
@@ -2482,11 +2482,11 @@ def retrieve_consents(self):
24822482
24832483 def retrieve_daily_active_report (self , start , end , application_id = None ):
24842484 """
2485- Retrieves the daily active user report between the two instants. If you specify an application id , it will only
2485+ Retrieves the daily active user report between the two instants. If you specify an application Id , it will only
24862486 return the daily active counts for that application.
24872487
24882488 Attributes:
2489- application_id: (Optional) The application id .
2489+ application_id: (Optional) The application Id .
24902490 start: The start instant as UTC milliseconds since Epoch.
24912491 end: The end instant as UTC milliseconds since Epoch.
24922492 """
@@ -2499,7 +2499,7 @@ def retrieve_daily_active_report(self, start, end, application_id=None):
24992499
25002500 def retrieve_email_template (self , email_template_id = None ):
25012501 """
2502- Retrieves the email template for the given Id. If you don't specify the id , this will return all the email templates.
2502+ Retrieves the email template for the given Id. If you don't specify the Id , this will return all the email templates.
25032503
25042504 Attributes:
25052505 email_template_id: (Optional) The Id of the email template.
@@ -2882,11 +2882,11 @@ def retrieve_lambdas_by_type(self, _type):
28822882
28832883 def retrieve_login_report (self , start , end , application_id = None ):
28842884 """
2885- Retrieves the login report between the two instants. If you specify an application id , it will only return the
2885+ Retrieves the login report between the two instants. If you specify an application Id , it will only return the
28862886 login counts for that application.
28872887
28882888 Attributes:
2889- application_id: (Optional) The application id .
2889+ application_id: (Optional) The application Id .
28902890 start: The start instant as UTC milliseconds since Epoch.
28912891 end: The end instant as UTC milliseconds since Epoch.
28922892 """
@@ -2899,7 +2899,7 @@ def retrieve_login_report(self, start, end, application_id=None):
28992899
29002900 def retrieve_message_template (self , message_template_id = None ):
29012901 """
2902- Retrieves the message template for the given Id. If you don't specify the id , this will return all the message templates.
2902+ Retrieves the message template for the given Id. If you don't specify the Id , this will return all the message templates.
29032903
29042904 Attributes:
29052905 message_template_id: (Optional) The Id of the message template.
@@ -2955,11 +2955,11 @@ def retrieve_messengers(self):
29552955
29562956 def retrieve_monthly_active_report (self , start , end , application_id = None ):
29572957 """
2958- Retrieves the monthly active user report between the two instants. If you specify an application id , it will only
2958+ Retrieves the monthly active user report between the two instants. If you specify an application Id , it will only
29592959 return the monthly active counts for that application.
29602960
29612961 Attributes:
2962- application_id: (Optional) The application id .
2962+ application_id: (Optional) The application Id .
29632963 start: The start instant as UTC milliseconds since Epoch.
29642964 end: The end instant as UTC milliseconds since Epoch.
29652965 """
@@ -3121,7 +3121,7 @@ def retrieve_refresh_tokens(self, user_id):
31213121
31223122 def retrieve_registration (self , user_id , application_id ):
31233123 """
3124- Retrieves the user registration for the user with the given Id and the given application id .
3124+ Retrieves the user registration for the user with the given Id and the given application Id .
31253125
31263126 Attributes:
31273127 user_id: The Id of the user.
@@ -3135,11 +3135,11 @@ def retrieve_registration(self, user_id, application_id):
31353135
31363136 def retrieve_registration_report (self , start , end , application_id = None ):
31373137 """
3138- Retrieves the registration report between the two instants. If you specify an application id , it will only return
3138+ Retrieves the registration report between the two instants. If you specify an application Id , it will only return
31393139 the registration counts for that application.
31403140
31413141 Attributes:
3142- application_id: (Optional) The application id .
3142+ application_id: (Optional) The application Id .
31433143 start: The start instant as UTC milliseconds since Epoch.
31443144 end: The end instant as UTC milliseconds since Epoch.
31453145 """
@@ -3301,7 +3301,7 @@ def retrieve_user(self, user_id):
33013301
33023302 def retrieve_user_action (self , user_action_id = None ):
33033303 """
3304- Retrieves the user action for the given Id. If you pass in null for the id , this will return all the user
3304+ Retrieves the user action for the given Id. If you pass in null for the Id , this will return all the user
33053305 actions.
33063306
33073307 Attributes:
@@ -3314,7 +3314,7 @@ def retrieve_user_action(self, user_action_id=None):
33143314
33153315 def retrieve_user_action_reason (self , user_action_reason_id = None ):
33163316 """
3317- Retrieves the user action reason for the given Id. If you pass in null for the id , this will return all the user
3317+ Retrieves the user action reason for the given Id. If you pass in null for the Id , this will return all the user
33183318 action reasons.
33193319
33203320 Attributes:
@@ -3414,8 +3414,8 @@ def retrieve_user_code(self, client_id, client_secret, user_code):
34143414 This API is useful if you want to build your own login workflow to complete a device grant.
34153415
34163416 Attributes:
3417- client_id: The client id .
3418- client_secret: The client id .
3417+ client_id: The client Id .
3418+ client_secret: The client Id .
34193419 user_code: The end-user verification code.
34203420 """
34213421 body = {
@@ -3527,12 +3527,12 @@ def retrieve_user_links_by_user_id(self, user_id, identity_provider_id=None):
35273527
35283528 def retrieve_user_login_report (self , user_id , start , end , application_id = None ):
35293529 """
3530- Retrieves the login report between the two instants for a particular user by Id. If you specify an application id , it will only return the
3530+ Retrieves the login report between the two instants for a particular user by Id. If you specify an application Id , it will only return the
35313531 login counts for that application.
35323532
35333533 Attributes:
3534- application_id: (Optional) The application id .
3535- user_id: The userId id .
3534+ application_id: (Optional) The application Id .
3535+ user_id: The userId Id .
35363536 start: The start instant as UTC milliseconds since Epoch.
35373537 end: The end instant as UTC milliseconds since Epoch.
35383538 """
@@ -3546,12 +3546,12 @@ def retrieve_user_login_report(self, user_id, start, end, application_id=None):
35463546
35473547 def retrieve_user_login_report_by_login_id (self , login_id , start , end , application_id = None ):
35483548 """
3549- Retrieves the login report between the two instants for a particular user by login Id. If you specify an application id , it will only return the
3549+ Retrieves the login report between the two instants for a particular user by login Id. If you specify an application Id , it will only return the
35503550 login counts for that application.
35513551
35523552 Attributes:
3553- application_id: (Optional) The application id .
3554- login_id: The userId id .
3553+ application_id: (Optional) The application Id .
3554+ login_id: The userId Id .
35553555 start: The start instant as UTC milliseconds since Epoch.
35563556 end: The end instant as UTC milliseconds since Epoch.
35573557 """
@@ -3627,7 +3627,7 @@ def retrieve_web_authn_credentials_for_user(self, user_id):
36273627
36283628 def retrieve_webhook (self , webhook_id = None ):
36293629 """
3630- Retrieves the webhook for the given Id. If you pass in null for the id , this will return all the webhooks.
3630+ Retrieves the webhook for the given Id. If you pass in null for the Id , this will return all the webhooks.
36313631
36323632 Attributes:
36333633 webhook_id: (Optional) The Id of the webhook.
@@ -3859,7 +3859,7 @@ def search_entities(self, request):
38593859
38603860 def search_entities_by_ids (self , ids ):
38613861 """
3862- Retrieves the entities for the given ids . If any Id is invalid, it is ignored.
3862+ Retrieves the entities for the given Ids . If any Id is invalid, it is ignored.
38633863
38643864 Attributes:
38653865 ids: The entity ids to search for.
@@ -4028,7 +4028,7 @@ def search_user_comments(self, request):
40284028 @deprecated ("This method has been renamed to search_users_by_ids, use that method instead." )
40294029 def search_users (self , ids ):
40304030 """
4031- Retrieves the users for the given ids . If any Id is invalid, it is ignored.
4031+ Retrieves the users for the given Ids . If any Id is invalid, it is ignored.
40324032
40334033 Attributes:
40344034 ids: The user ids to search for.
@@ -4040,10 +4040,10 @@ def search_users(self, ids):
40404040
40414041 def search_users_by_ids (self , ids ):
40424042 """
4043- Retrieves the users for the given ids . If any Id is invalid, it is ignored.
4043+ Retrieves the users for the given Ids . If any Id is invalid, it is ignored.
40444044
40454045 Attributes:
4046- ids: The user ids to search for.
4046+ ids: The user Ids to search for.
40474047 """
40484048 return self .start ().uri ('/api/user/search' ) \
40494049 .url_parameter ('ids' , self .convert_true_false (ids )) \
@@ -4103,7 +4103,7 @@ def search_webhooks(self, request):
41034103
41044104 def send_email (self , email_template_id , request ):
41054105 """
4106- Send an email using an email template id . You can optionally provide <code>requestData</code> to access key value
4106+ Send an email using an email template Id . You can optionally provide <code>requestData</code> to access key value
41074107 pairs in the email template.
41084108
41094109 Attributes:
@@ -4271,16 +4271,16 @@ def two_factor_login(self, request):
42714271 .post () \
42724272 .go ()
42734273
4274- def update_api_key (self , api_key_id , request ):
4274+ def update_api_key (self , key_id , request ):
42754275 """
4276- Updates an API key by given id
4276+ Updates an API key with the given Id.
42774277
42784278 Attributes:
4279- api_key_id : The Id of the API key to update.
4280- request: The request object that contains all the information used to create the API Key .
4279+ key_id : The Id of the API key to update.
4280+ request: The request that contains all the new API key information .
42814281 """
42824282 return self .start ().uri ('/api/api-key' ) \
4283- .url_segment (api_key_id ) \
4283+ .url_segment (key_id ) \
42844284 .body_handler (JSONBodyHandler (request )) \
42854285 .put () \
42864286 .go ()
@@ -4730,7 +4730,7 @@ def validate_device(self, user_code, client_id):
47304730
47314731 Attributes:
47324732 user_code: The end-user verification code.
4733- client_id: The client id .
4733+ client_id: The client Id .
47344734 """
47354735 return self .start_anonymous ().uri ('/oauth2/device/validate' ) \
47364736 .url_parameter ('user_code' , self .convert_true_false (user_code )) \
0 commit comments