apiV2TutorBookingsReschedulePartialUpdateWithHttpInfo method
Future<Response>
apiV2TutorBookingsReschedulePartialUpdateWithHttpInfo(
- String id, {
- PatchedBookingReschedule? patchedBookingReschedule,
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:
-
String id (required):
-
PatchedBookingReschedule patchedBookingReschedule:
Implementation
Future<Response> apiV2TutorBookingsReschedulePartialUpdateWithHttpInfo(String id, { PatchedBookingReschedule? patchedBookingReschedule, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/tutor/bookings/{id}/reschedule/'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = patchedBookingReschedule;
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,
);
}