apiV2CustomerSerialCoursesPartialUpdateWithHttpInfo method

Future<Response> apiV2CustomerSerialCoursesPartialUpdateWithHttpInfo(
  1. String id, {
  2. PatchedtutorSerialCourse? patchedtutorSerialCourse,
})

Interface to use multiple serializers depends on requested action

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV2CustomerSerialCoursesPartialUpdateWithHttpInfo(String id, { PatchedtutorSerialCourse? patchedtutorSerialCourse, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/customer/serial_courses/{id}/'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = patchedtutorSerialCourse;

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