Unfortunately deployment environments can still not be created or edited via the REST API. Please watch and vote on the following issue to raise Atlassian's priority regarding this notable and long standing gap (the current low vote count is a bit misleading, insofar there have been related issues before that got resolved as a 'Duplicate' due to sloppy issue triage):
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events