sendPasswordResetEmailWithHttpInfo method

Future<Response> sendPasswordResetEmailWithHttpInfo(
  1. MmSendPasswordResetEmailRequest mmSendPasswordResetEmailRequest
)

Send password reset email

Send an email containing a link for resetting the user's password. The link will contain a one-use, timed recovery code tied to the user's account. Only works for non-SSO users. ##### Permissions No permissions required.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> sendPasswordResetEmailWithHttpInfo(
  MmSendPasswordResetEmailRequest mmSendPasswordResetEmailRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/password/reset/send';

  // ignore: prefer_final_locals
  Object? postBody = mmSendPasswordResetEmailRequest;

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

  const contentTypes = <String>['application/json'];

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