OK got it to work.
I used update_field() to add the first row with all the sub fields and nested repeater as arrays.
For the next rows I fetched the entire parent group field using get_field()
and appended the row as array.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users