apiV2TutorTutorFeedbackPartialUpdateWithHttpInfo method
Future<Response>
apiV2TutorTutorFeedbackPartialUpdateWithHttpInfo(
- int bookingPk, {
- PatchedTutorFeedback? patchedTutorFeedback,
Performs an HTTP 'PATCH /api/v2/tutor/tutor_feedback/{booking__pk}/' operation and returns the Response.
Parameters:
-
int bookingPk (required): A unique integer value identifying this tutor feedback.
-
PatchedTutorFeedback patchedTutorFeedback:
Implementation
Future<Response> apiV2TutorTutorFeedbackPartialUpdateWithHttpInfo(int bookingPk, { PatchedTutorFeedback? patchedTutorFeedback, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/tutor/tutor_feedback/{booking__pk}/'
.replaceAll('{booking__pk}', bookingPk.toString());
// ignore: prefer_final_locals
Object? postBody = patchedTutorFeedback;
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,
);
}