apiV2CustomerFeedbacksPartialUpdateWithHttpInfo method
Future<Response>
apiV2CustomerFeedbacksPartialUpdateWithHttpInfo(
- String id, {
- PatchedCustomerFeedback? patchedCustomerFeedback,
Viewset is being used by Customers to leave review for Tutor after a lesson finished
Note: This method returns the HTTP Response.
Parameters:
-
String id (required):
-
PatchedCustomerFeedback patchedCustomerFeedback:
Implementation
Future<Response> apiV2CustomerFeedbacksPartialUpdateWithHttpInfo(String id, { PatchedCustomerFeedback? patchedCustomerFeedback, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/customer/feedbacks/{id}/'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = patchedCustomerFeedback;
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,
);
}