bulkAggregateQuestionResultsWithHttpInfo method

Future<Response> bulkAggregateQuestionResultsWithHttpInfo(
  1. String tenantId,
  2. BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, {
  3. bool? forceRecalculate,
})

Performs an HTTP 'POST /api/v1/question-results-aggregation/bulk' operation and returns the Response. Parameters:

Implementation

Future<Response> bulkAggregateQuestionResultsWithHttpInfo(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, { bool? forceRecalculate, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v1/question-results-aggregation/bulk';

  // ignore: prefer_final_locals
  Object? postBody = bulkAggregateQuestionResultsRequest;

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

    queryParams.addAll(_queryParams('', 'tenantId', tenantId));
  if (forceRecalculate != null) {
    queryParams.addAll(_queryParams('', 'forceRecalculate', forceRecalculate));
  }

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


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