update API to update user info