aiMathMathSampleQuestionsCreateWithHttpInfo method

Future<Response> aiMathMathSampleQuestionsCreateWithHttpInfo(
  1. String org,
  2. SampleQuestionsDocument sampleQuestionsDocument
)

Upload documents to provide sample questions of reference to generate more math questions from.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> aiMathMathSampleQuestionsCreateWithHttpInfo(String org, SampleQuestionsDocument sampleQuestionsDocument,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/ai/math/math/{org}/sample-questions/'
    .replaceAll('{org}', org);

  // ignore: prefer_final_locals
  Object? postBody = sampleQuestionsDocument;

  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,
  );
}