apiV2UsersPasswordResetCreateWithHttpInfo method

Future<Response> apiV2UsersPasswordResetCreateWithHttpInfo(
  1. PasswordRestRequest passwordRestRequest
)

Performs an HTTP 'POST /api/v2/users/password/reset/' operation and returns the Response. Parameters:

Implementation

Future<Response> apiV2UsersPasswordResetCreateWithHttpInfo(PasswordRestRequest passwordRestRequest,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/users/password/reset/';

  // ignore: prefer_final_locals
  Object? postBody = passwordRestRequest;

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

  const contentTypes = <String>['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'];


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