You would need to look at the entire flex field and loop through the rows to find the one you want to update. Then use https://www.advancedcustomfields.com/resources/update_field/ to update the flex field. Like I said, I don’t really know exactly how to do this. It would probably take me several hours to figure it out.