aiMathMathStudentAnswersCreateWithHttpInfo method

Future<Response> aiMathMathStudentAnswersCreateWithHttpInfo(
  1. String org,
  2. StudentAnswer studentAnswer
)

Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> aiMathMathStudentAnswersCreateWithHttpInfo(String org, StudentAnswer studentAnswer,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/ai/math/math/{org}/student-answers/'
    .replaceAll('{org}', org);

  // ignore: prefer_final_locals
  Object? postBody = studentAnswer;

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