patchUserWithHttpInfo method
Patch a user
Partially update a user by providing only the fields you want to update. Omitted fields will not be updated. The fields that can be updated are defined in the request body, all other provided fields will be ignored. ##### Permissions Must be logged in as the user being updated or have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): User GUID
-
MmPatchUserRequest mmPatchUserRequest (required): User object that is to be updated
Implementation
Future<Response> patchUserWithHttpInfo(
String userId,
MmPatchUserRequest mmPatchUserRequest,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/patch'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmPatchUserRequest;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}