Need to create Powershell script/Automation to add Sub projects and Environment.
As of now we used to add the new environments manually in the App’s Team Octopus Url and then add those enviornments in the respective AD group like administrators(dev,stage) or Contributors(only dev) etc…
We have a large number of scripts collected together in our API GitHub. I would recommend using the octopus.client rather than making full REST calls as it is generally easier to utilize.
Please let me know if you have any further questions on this.