aiMathMathSkillsPartialUpdateWithHttpInfo method
Future<Response>
aiMathMathSkillsPartialUpdateWithHttpInfo(
- int id,
- String org, {
- PatchedSkill? patchedSkill,
Mixin that includes the StudentTokenAuthentication and IsPlatformAdmin
Note: This method returns the HTTP Response.
Parameters:
-
int id (required): A unique integer value identifying this skill.
-
String org (required):
-
PatchedSkill patchedSkill:
Implementation
Future<Response> aiMathMathSkillsPartialUpdateWithHttpInfo(int id, String org, { PatchedSkill? patchedSkill, }) async {
// ignore: prefer_const_declarations
final path = r'/api/ai/math/math/{org}/skills/{id}/'
.replaceAll('{id}', id.toString())
.replaceAll('{org}', org);
// ignore: prefer_final_locals
Object? postBody = patchedSkill;
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,
);
}