update user api struct