apiV2CustomerFeedbacksUpdateWithHttpInfo method
Future<Response>
apiV2CustomerFeedbacksUpdateWithHttpInfo(
- String id, {
- CustomerFeedback? customerFeedback,
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):
-
CustomerFeedback customerFeedback:
Implementation
Future<Response> apiV2CustomerFeedbacksUpdateWithHttpInfo(String id, { CustomerFeedback? customerFeedback, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/customer/feedbacks/{id}/'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = customerFeedback;
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,
);
}