apiV2PersonalityTestLevelsUpdateWithHttpInfo method
Future<Response>
apiV2PersonalityTestLevelsUpdateWithHttpInfo(
- int id,
- PersonalityTestLevel personalityTestLevel
Performs an HTTP 'PUT /api/v2/personality_test/levels/{id}/' operation and returns the Response.
Parameters:
-
int id (required): A unique integer value identifying this personality test level.
-
PersonalityTestLevel personalityTestLevel (required):
Implementation
Future<Response> apiV2PersonalityTestLevelsUpdateWithHttpInfo(int id, PersonalityTestLevel personalityTestLevel,) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/personality_test/levels/{id}/'
.replaceAll('{id}', id.toString());
// ignore: prefer_final_locals
Object? postBody = personalityTestLevel;
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,
);
}