This is the documentation I can find for update field
https://www.advancedcustomfields.com/resources/update_field/
is it different to the post object type?
How can I pass the $team_code value, which is the value I want to the field and the other necessary information ie the post object id?
Thanks