22require 'fusionauth/rest_client'
33
44#
5- # Copyright (c) 2018-2023 , FusionAuth, All Rights Reserved
5+ # Copyright (c) 2018-2025 , FusionAuth, All Rights Reserved
66#
77# Licensed under the Apache License, Version 2.0 (the "License");
88# you may not use this file except in compliance with the License.
@@ -751,7 +751,7 @@ def deactivate_user_action(user_action_id)
751751 end
752752
753753 #
754- # Deactivates the users with the given ids .
754+ # Deactivates the users with the given Ids .
755755 #
756756 # @param user_ids [Array] The ids of the users to deactivate.
757757 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -766,7 +766,7 @@ def deactivate_users(user_ids)
766766 end
767767
768768 #
769- # Deactivates the users with the given ids .
769+ # Deactivates the users with the given Ids .
770770 #
771771 # @param user_ids [Array] The ids of the users to deactivate.
772772 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -1208,8 +1208,8 @@ def delete_user_with_request(user_id, request)
12081208 end
12091209
12101210 #
1211- # Deletes the users with the given ids , or users matching the provided JSON query or queryString.
1212- # The order of preference is ids , query and then queryString, it is recommended to only provide one of the three for the request.
1211+ # Deletes the users with the given Ids , or users matching the provided JSON query or queryString.
1212+ # The order of preference is Ids , query and then queryString, it is recommended to only provide one of the three for the request.
12131213 #
12141214 # This method can be used to deactivate or permanently delete (hard-delete) users based upon the hardDelete boolean in the request body.
12151215 # Using the dryRun parameter you may also request the result of the action without actually deleting or deactivating any users.
@@ -1225,8 +1225,8 @@ def delete_users(request)
12251225 end
12261226
12271227 #
1228- # Deletes the users with the given ids , or users matching the provided JSON query or queryString.
1229- # The order of preference is ids , query and then queryString, it is recommended to only provide one of the three for the request.
1228+ # Deletes the users with the given Ids , or users matching the provided JSON query or queryString.
1229+ # The order of preference is Ids , query and then queryString, it is recommended to only provide one of the three for the request.
12301230 #
12311231 # This method can be used to deactivate or permanently delete (hard-delete) users based upon the hardDelete boolean in the request body.
12321232 # Using the dryRun parameter you may also request the result of the action without actually deleting or deactivating any users.
@@ -1747,7 +1747,7 @@ def lookup_identity_provider(domain)
17471747 # Modifies a temporal user action by changing the expiration of the action and optionally adding a comment to the
17481748 # action.
17491749 #
1750- # @param action_id [string] The Id of the action to modify. This is technically the user action log id .
1750+ # @param action_id [string] The Id of the action to modify. This is technically the user action log Id .
17511751 # @param request [OpenStruct, Hash] The request that contains all the information about the modification.
17521752 # @return [FusionAuth::ClientResponse] The ClientResponse object.
17531753 def modify_action ( action_id , request )
@@ -1771,16 +1771,16 @@ def passwordless_login(request)
17711771 end
17721772
17731773 #
1774- # Updates an authentication API key by given id
1774+ # Updates an API key with the given Id.
17751775 #
1776- # @param key_id [string] The Id of the authentication key. If not provided a secure random api key will be generated.
1777- # @param request [OpenStruct, Hash] The request object that contains all the information needed to create the APIKey .
1776+ # @param key_id [string] The Id of the API key. If not provided a secure random api key will be generated.
1777+ # @param request [OpenStruct, Hash] The request object that contains all the information needed to create the API key .
17781778 # @return [FusionAuth::ClientResponse] The ClientResponse object.
17791779 def patch_api_key ( key_id , request )
17801780 start . uri ( '/api/api-key' )
17811781 . url_segment ( key_id )
17821782 . body_handler ( FusionAuth ::JSONBodyHandler . new ( request ) )
1783- . post
1783+ . patch
17841784 . go
17851785 end
17861786
@@ -2289,7 +2289,7 @@ def reindex(request)
22892289 end
22902290
22912291 #
2292- # Removes a user from the family with the given id .
2292+ # Removes a user from the family with the given Id .
22932293 #
22942294 # @param family_id [string] The Id of the family to remove the user from.
22952295 # @param user_id [string] The Id of the user to remove from the family.
@@ -2344,7 +2344,7 @@ def resend_registration_verification(email, application_id)
23442344 end
23452345
23462346 #
2347- # Retrieves an authentication API key for the given id
2347+ # Retrieves an authentication API key for the given Id.
23482348 #
23492349 # @param key_id [string] The Id of the API key to retrieve.
23502350 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2410,7 +2410,7 @@ def retrieve_active_actions(user_id)
24102410 #
24112411 # Retrieves the application for the given Id or all the applications if the Id is null.
24122412 #
2413- # @param application_id [string] (Optional) The application id .
2413+ # @param application_id [string] (Optional) The application Id .
24142414 # @return [FusionAuth::ClientResponse] The ClientResponse object.
24152415 def retrieve_application ( application_id )
24162416 start . uri ( '/api/application' )
@@ -2486,10 +2486,10 @@ def retrieve_consents
24862486 end
24872487
24882488 #
2489- # Retrieves the daily active user report between the two instants. If you specify an application id , it will only
2489+ # Retrieves the daily active user report between the two instants. If you specify an application Id , it will only
24902490 # return the daily active counts for that application.
24912491 #
2492- # @param application_id [string] (Optional) The application id .
2492+ # @param application_id [string] (Optional) The application Id .
24932493 # @param start [OpenStruct, Hash] The start instant as UTC milliseconds since Epoch.
24942494 # @param _end [OpenStruct, Hash] The end instant as UTC milliseconds since Epoch.
24952495 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2503,7 +2503,7 @@ def retrieve_daily_active_report(application_id, start, _end)
25032503 end
25042504
25052505 #
2506- # Retrieves the email template for the given Id. If you don't specify the id , this will return all the email templates.
2506+ # Retrieves the email template for the given Id. If you don't specify the Id , this will return all the email templates.
25072507 #
25082508 # @param email_template_id [string] (Optional) The Id of the email template.
25092509 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2886,10 +2886,10 @@ def retrieve_lambdas_by_type(type)
28862886 end
28872887
28882888 #
2889- # Retrieves the login report between the two instants. If you specify an application id , it will only return the
2889+ # Retrieves the login report between the two instants. If you specify an application Id , it will only return the
28902890 # login counts for that application.
28912891 #
2892- # @param application_id [string] (Optional) The application id .
2892+ # @param application_id [string] (Optional) The application Id .
28932893 # @param start [OpenStruct, Hash] The start instant as UTC milliseconds since Epoch.
28942894 # @param _end [OpenStruct, Hash] The end instant as UTC milliseconds since Epoch.
28952895 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2903,7 +2903,7 @@ def retrieve_login_report(application_id, start, _end)
29032903 end
29042904
29052905 #
2906- # Retrieves the message template for the given Id. If you don't specify the id , this will return all the message templates.
2906+ # Retrieves the message template for the given Id. If you don't specify the Id , this will return all the message templates.
29072907 #
29082908 # @param message_template_id [string] (Optional) The Id of the message template.
29092909 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -2959,10 +2959,10 @@ def retrieve_messengers
29592959 end
29602960
29612961 #
2962- # Retrieves the monthly active user report between the two instants. If you specify an application id , it will only
2962+ # Retrieves the monthly active user report between the two instants. If you specify an application Id , it will only
29632963 # return the monthly active counts for that application.
29642964 #
2965- # @param application_id [string] (Optional) The application id .
2965+ # @param application_id [string] (Optional) The application Id .
29662966 # @param start [OpenStruct, Hash] The start instant as UTC milliseconds since Epoch.
29672967 # @param _end [OpenStruct, Hash] The end instant as UTC milliseconds since Epoch.
29682968 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3125,7 +3125,7 @@ def retrieve_refresh_tokens(user_id)
31253125 end
31263126
31273127 #
3128- # Retrieves the user registration for the user with the given Id and the given application id .
3128+ # Retrieves the user registration for the user with the given Id and the given application Id .
31293129 #
31303130 # @param user_id [string] The Id of the user.
31313131 # @param application_id [string] The Id of the application.
@@ -3139,10 +3139,10 @@ def retrieve_registration(user_id, application_id)
31393139 end
31403140
31413141 #
3142- # Retrieves the registration report between the two instants. If you specify an application id , it will only return
3142+ # Retrieves the registration report between the two instants. If you specify an application Id , it will only return
31433143 # the registration counts for that application.
31443144 #
3145- # @param application_id [string] (Optional) The application id .
3145+ # @param application_id [string] (Optional) The application Id .
31463146 # @param start [OpenStruct, Hash] The start instant as UTC milliseconds since Epoch.
31473147 # @param _end [OpenStruct, Hash] The end instant as UTC milliseconds since Epoch.
31483148 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3305,7 +3305,7 @@ def retrieve_user(user_id)
33053305 end
33063306
33073307 #
3308- # Retrieves the user action for the given Id. If you pass in null for the id , this will return all the user
3308+ # Retrieves the user action for the given Id. If you pass in null for the Id , this will return all the user
33093309 # actions.
33103310 #
33113311 # @param user_action_id [string] (Optional) The Id of the user action.
@@ -3318,7 +3318,7 @@ def retrieve_user_action(user_action_id)
33183318 end
33193319
33203320 #
3321- # Retrieves the user action reason for the given Id. If you pass in null for the id , this will return all the user
3321+ # Retrieves the user action reason for the given Id. If you pass in null for the Id , this will return all the user
33223322 # action reasons.
33233323 #
33243324 # @param user_action_reason_id [string] (Optional) The Id of the user action reason.
@@ -3417,8 +3417,8 @@ def retrieve_user_by_verification_id(verification_id)
34173417 #
34183418 # This API is useful if you want to build your own login workflow to complete a device grant.
34193419 #
3420- # @param client_id [string] The client id .
3421- # @param client_secret [string] The client id .
3420+ # @param client_id [string] The client Id .
3421+ # @param client_secret [string] The client Id .
34223422 # @param user_code [string] The end-user verification code.
34233423 # @return [FusionAuth::ClientResponse] The ClientResponse object.
34243424 def retrieve_user_code ( client_id , client_secret , user_code )
@@ -3531,11 +3531,11 @@ def retrieve_user_links_by_user_id(identity_provider_id, user_id)
35313531 end
35323532
35333533 #
3534- # 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
3534+ # 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
35353535 # login counts for that application.
35363536 #
3537- # @param application_id [string] (Optional) The application id .
3538- # @param user_id [string] The userId id .
3537+ # @param application_id [string] (Optional) The application Id .
3538+ # @param user_id [string] The userId Id .
35393539 # @param start [OpenStruct, Hash] The start instant as UTC milliseconds since Epoch.
35403540 # @param _end [OpenStruct, Hash] The end instant as UTC milliseconds since Epoch.
35413541 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3550,11 +3550,11 @@ def retrieve_user_login_report(application_id, user_id, start, _end)
35503550 end
35513551
35523552 #
3553- # 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
3553+ # 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
35543554 # login counts for that application.
35553555 #
3556- # @param application_id [string] (Optional) The application id .
3557- # @param login_id [string] The userId id .
3556+ # @param application_id [string] (Optional) The application Id .
3557+ # @param login_id [string] The userId Id .
35583558 # @param start [OpenStruct, Hash] The start instant as UTC milliseconds since Epoch.
35593559 # @param _end [OpenStruct, Hash] The end instant as UTC milliseconds since Epoch.
35603560 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3631,7 +3631,7 @@ def retrieve_web_authn_credentials_for_user(user_id)
36313631 end
36323632
36333633 #
3634- # Retrieves the webhook for the given Id. If you pass in null for the id , this will return all the webhooks.
3634+ # Retrieves the webhook for the given Id. If you pass in null for the Id , this will return all the webhooks.
36353635 #
36363636 # @param webhook_id [string] (Optional) The Id of the webhook.
36373637 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -3863,7 +3863,7 @@ def search_entities(request)
38633863 end
38643864
38653865 #
3866- # Retrieves the entities for the given ids . If any Id is invalid, it is ignored.
3866+ # Retrieves the entities for the given Ids . If any Id is invalid, it is ignored.
38673867 #
38683868 # @param ids [Array] The entity ids to search for.
38693869 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -4031,7 +4031,7 @@ def search_user_comments(request)
40314031 end
40324032
40334033 #
4034- # Retrieves the users for the given ids . If any Id is invalid, it is ignored.
4034+ # Retrieves the users for the given Ids . If any Id is invalid, it is ignored.
40354035 #
40364036 # @param ids [Array] The user ids to search for.
40374037 # @return [FusionAuth::ClientResponse] The ClientResponse object.
@@ -4044,9 +4044,9 @@ def search_users(ids)
40444044 end
40454045
40464046 #
4047- # Retrieves the users for the given ids . If any Id is invalid, it is ignored.
4047+ # Retrieves the users for the given Ids . If any Id is invalid, it is ignored.
40484048 #
4049- # @param ids [Array] The user ids to search for.
4049+ # @param ids [Array] The user Ids to search for.
40504050 # @return [FusionAuth::ClientResponse] The ClientResponse object.
40514051 def search_users_by_ids ( ids )
40524052 start . uri ( '/api/user/search' )
@@ -4107,7 +4107,7 @@ def search_webhooks(request)
41074107 end
41084108
41094109 #
4110- # Send an email using an email template id . You can optionally provide <code>requestData</code> to access key value
4110+ # Send an email using an email template Id . You can optionally provide <code>requestData</code> to access key value
41114111 # pairs in the email template.
41124112 #
41134113 # @param email_template_id [string] The Id for the template.
@@ -4277,14 +4277,14 @@ def two_factor_login(request)
42774277 end
42784278
42794279 #
4280- # Updates an API key by given id
4280+ # Updates an API key with the given Id.
42814281 #
4282- # @param api_key_id [string] The Id of the API key to update.
4283- # @param request [OpenStruct, Hash] The request object that contains all the information used to create the API Key .
4282+ # @param key_id [string] The Id of the API key to update.
4283+ # @param request [OpenStruct, Hash] The request that contains all the new API key information .
42844284 # @return [FusionAuth::ClientResponse] The ClientResponse object.
4285- def update_api_key ( api_key_id , request )
4285+ def update_api_key ( key_id , request )
42864286 start . uri ( '/api/api-key' )
4287- . url_segment ( api_key_id )
4287+ . url_segment ( key_id )
42884288 . body_handler ( FusionAuth ::JSONBodyHandler . new ( request ) )
42894289 . put
42904290 . go
@@ -4733,7 +4733,7 @@ def upsert_entity_grant(entity_id, request)
47334733 # If you build your own activation form you should validate the user provided code prior to beginning the Authorization grant.
47344734 #
47354735 # @param user_code [string] The end-user verification code.
4736- # @param client_id [string] The client id .
4736+ # @param client_id [string] The client Id .
47374737 # @return [FusionAuth::ClientResponse] The ClientResponse object.
47384738 def validate_device ( user_code , client_id )
47394739 startAnonymous . uri ( '/oauth2/device/validate' )
0 commit comments