update user, history API