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