api changes for user_id