authPasswordResetCreateWithHttpInfo method

Future<Response> authPasswordResetCreateWithHttpInfo(
  1. PasswordReset passwordReset
)

Request password reset. Send an email to the user first.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> authPasswordResetCreateWithHttpInfo(
  PasswordReset passwordReset,
) async {
  // ignore: prefer_const_declarations
  final path = r'/api/auth/password/reset/';

  // ignore: prefer_final_locals
  Object? postBody = passwordReset;

  final queryParams = <QueryParam>[];
  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,
  );
}