Scripts, documentation and API

I need make external script that will change settings for specific cameras in Multi-Camera rig (group based). Like change one group to one Drive Mode another group to another mode.
Plus change file name options.

What I should use for such operations, external API or scripts?

And I also can’t find documentation about scripts for new SmartShooter/CaptureGrid 4.