I have branch deploys set to all, and every new branch gets pushed to a subdomain e.g. https://5f64b2fc179fa90007c35a79--intense-tor-86769.netlify.app/.
Navigating to domain settings -> branch subdomains -> create subdomain, and selecting a subdomain, the subdomain for the above will be created based on the branch name, e.g. https://user-a-site-3.ionicfireapp.com/
Is there a way to do this programatically via the API? I cant find any docs on it.
I’d like to use the branch subdomain feature to create mini sites, for clients (after signing up to pro plan).
The idea is to create a build, push to GIT via api, auto branch deploy created the subdomain, and the final part would be selecting the subdomain name programatically, Do you think this is a good way to go about it? I’ve read in the docs the branch deploys is for testing updates to the main site, but I think it could work for what I need here - creating subdomain sites for clients and saving as branches too.