Hi @mageguild,
Thanks for the post.
Yes this can be achieved, you can also opt to pass the field names instead.
For flexible content field and the Repeater field, I would suggest you make use of the update_sub_field() instead.
Please have a look at the following page for more info on this: https://www.advancedcustomfields.com/resources/update_sub_field/