updateUserMfaWithHttpInfo method
Future<Response>
updateUserMfaWithHttpInfo(
- String userId,
- MmUpdateUserMfaRequest mmUpdateUserMfaRequest
Update a user's MFA
Activates multi-factor authentication for the user if activate
is true and a valid code
is provided. If activate is false, then code
is not required and multi-factor authentication is disabled for the user. ##### Permissions Must be logged in as the user being updated or have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): User GUID
-
MmUpdateUserMfaRequest mmUpdateUserMfaRequest (required):
Implementation
Future<Response> updateUserMfaWithHttpInfo(
String userId,
MmUpdateUserMfaRequest mmUpdateUserMfaRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/mfa'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmUpdateUserMfaRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}