apiV2UsersProfilePartialUpdateWithHttpInfo method
Future<Response>
apiV2UsersProfilePartialUpdateWithHttpInfo(
- int id, {
- PatchedUserProfile? patchedUserProfile,
Performs an HTTP 'PATCH /api/v2/users/profile/{id}/' operation and returns the Response.
Parameters:
-
int id (required): A unique integer value identifying this th user.
-
PatchedUserProfile patchedUserProfile:
Implementation
Future<Response> apiV2UsersProfilePartialUpdateWithHttpInfo(int id, { PatchedUserProfile? patchedUserProfile, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/users/profile/{id}/'
.replaceAll('{id}', id.toString());
// ignore: prefer_final_locals
Object? postBody = patchedUserProfile;
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,
);
}