Good question - unfortunately the Bamboo REST API documentation leaves a bit to be desired still:
- While mentioned and linked on the Bamboo REST Resources page, it is easily overlooked that the inline information on that page itself is incomplete and only the API reference for your Bamboo version is the recommended source of information on Bamboo REST APIs.
- Furthermore, while structurally similar, that API reference is also not entirely at the same level as the ones from JIRA, Confluence and Stash in particular, and frequently lacks the request/response shapes for example.
Given this, I'm afraid it is not possible to create a deployment environment via REST yet, insofar /deploy/environment is lacking a POST method (any method in fact) to create a new environment.
This matches with two related REST API features, which aren't yet available either:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.