apiV2TutorBookingsRescheduleUpdateWithHttpInfo method

Future<Response> apiV2TutorBookingsRescheduleUpdateWithHttpInfo(
  1. String id,
  2. BookingReschedule bookingReschedule
)

Main viewset used by Tutors to control own bookings. Provides full list of fields for a Booking object. With filtering options.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> apiV2TutorBookingsRescheduleUpdateWithHttpInfo(String id, BookingReschedule bookingReschedule,) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/tutor/bookings/{id}/reschedule/'
    .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = bookingReschedule;

  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,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}