apiV2TutorReviewsUpdateWithHttpInfo method
Performs an HTTP 'PUT /api/v2/tutor/reviews/{id}/' operation and returns the Response.
Parameters:
-
String id (required):
-
TutorReview tutorReview:
Implementation
Future<Response> apiV2TutorReviewsUpdateWithHttpInfo(String id, { TutorReview? tutorReview, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/tutor/reviews/{id}/'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = tutorReview;
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,
);
}