throw new ZendeskApiException(e);
}
}
public boolean changeUsersPassword(long userId, String oldPassword, String newPassword) throws ZendeskApiException {
Password body = new Password();
body.setPreviousPassword(oldPassword);
body.setPassword(newPassword);
try {
String json = JsonHelper.marshal(body);
return genericBooleanPost(getUserIdUri(userId) + "/password.json", json);
} catch (Exception e) {
throw new ZendeskApiException("Failed to change the password for user id " + userId, e);