update_post()
is not an ACF function. Are you sure that’s what you’re calling? This should be creating a fatal error, unless this function happens to be defined in some other plugin.
update_field('field_key','value', $post_id);
It also depends on what type of field you are updating and what you’re trying to set the value to.