Update user api endpoint