aiMathMathQuestionsPartialUpdateWithHttpInfo method
Future<Response>
aiMathMathQuestionsPartialUpdateWithHttpInfo(
- int id,
- String org, {
- PatchedMathQuestion? patchedMathQuestion,
Retrieve, update and delete math questions.
Note: This method returns the HTTP Response.
Parameters:
-
int id (required): A unique integer value identifying this math question.
-
String org (required):
-
PatchedMathQuestion patchedMathQuestion:
Implementation
Future<Response> aiMathMathQuestionsPartialUpdateWithHttpInfo(int id, String org, { PatchedMathQuestion? patchedMathQuestion, }) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/math/math/{org}/questions/{id}/'
.replaceAll('{id}', id.toString())
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody = patchedMathQuestion;
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,
'PATCH',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}