apiV2PersonalityTestLevelsPartialUpdateWithHttpInfo method

Future<Response> apiV2PersonalityTestLevelsPartialUpdateWithHttpInfo(
  1. int id, {
  2. PatchedPersonalityTestLevel? patchedPersonalityTestLevel,
})

Performs an HTTP 'PATCH /api/v2/personality_test/levels/{id}/' operation and returns the Response. Parameters:

Implementation

Future<Response> apiV2PersonalityTestLevelsPartialUpdateWithHttpInfo(int id, { PatchedPersonalityTestLevel? patchedPersonalityTestLevel, }) async {
  // ignore: prefer_const_declarations
  final path = r'/api/v2/personality_test/levels/{id}/'
    .replaceAll('{id}', id.toString());

  // ignore: prefer_final_locals
  Object? postBody = patchedPersonalityTestLevel;

  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,
  );
}