apiV2TutorReferencesPartialUpdateWithHttpInfo method
Future<Response>
apiV2TutorReferencesPartialUpdateWithHttpInfo(
- String id, {
- PatchedTutorReference? patchedTutorReference,
Viewset is being used by Tutors to control reference objects. And other users to fill up a reference object.
Note: This method returns the HTTP Response.
Parameters:
-
String id (required): A UUID string identifying this tutor reference.
-
PatchedTutorReference patchedTutorReference:
Implementation
Future<Response> apiV2TutorReferencesPartialUpdateWithHttpInfo(String id, { PatchedTutorReference? patchedTutorReference, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/tutor/references/{id}/'
.replaceAll('{id}', id);
// ignore: prefer_final_locals
Object? postBody = patchedTutorReference;
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,
);
}