unsetUserPasswordCompromisedWithHttpInfo method

Future<Response> unsetUserPasswordCompromisedWithHttpInfo(
  1. String userId
)

Unset a user's password as compromised

Sets the given user's password as no longer compromised. The user will no longer be prompted to reset their password on their next sign-in.

Note: This method returns the HTTP Response.

Parameters:

  • String userId (required): The ID of the user to unset the compromised status for

Implementation

Future<http.Response> unsetUserPasswordCompromisedWithHttpInfo(
  String userId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/password/unset_compromised'
      .replaceAll('{user_id}', userId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}