Unfortunately, we do not have an API to create and configure new subsites inside a multisite, but much of what you would like to do can probably be done with the WordPress Command Line Interface tool, WP-CLI.
Unfortunately, we do not have an API to create and configure new subsites inside a multisite, but much of what you would like to do can probably be done with the WordPress Command Line Interface tool, WP-CLI.