user.setSuspended(true);
return updateUser(user);
}
public IndividualUserResponse updateUser(User user) throws ZendeskApiException {
IndividualUserResponse userToUpdate = new IndividualUserResponse();
userToUpdate.setUser(user);
try {
return genericPut(getUserIdUri(user.getId()) + ".json", userToUpdate, IndividualUserResponse.class);
} catch (Exception e) {
throw new ZendeskApiException("Could not update user id " + user.getId(), e);
}