apiV2TutorTutorFeedbackUpdateWithHttpInfo method
Future<Response>
apiV2TutorTutorFeedbackUpdateWithHttpInfo(
- int bookingPk,
- TutorFeedback tutorFeedback
Performs an HTTP 'PUT /api/v2/tutor/tutor_feedback/{booking__pk}/' operation and returns the Response.
Parameters:
-
int bookingPk (required): A unique integer value identifying this tutor feedback.
-
TutorFeedback tutorFeedback (required):
Implementation
Future<Response> apiV2TutorTutorFeedbackUpdateWithHttpInfo(int bookingPk, TutorFeedback tutorFeedback,) 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 = tutorFeedback;
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,
);
}