Hi,
I'm looking for a way to programmatically define project variables (a new feature since Bamboo 7.1.2).
https://confluence.atlassian.com/bamboo/defining-project-variables-1018270685.html
There is a REST endpoint
https://docs.atlassian.com/atlassian-bamboo/REST/7.1.2/#d2e2848
However, I just can't get what to pass as a body for this POST request. I guess it should be something like a json containing varName/varValue pair, but just can't find an example.
I would appreciate it if I could have an example of doing this.
Thanks.
A possible solution is to pass the following xml as your request body:
<variable name="ABC" value="123"/>
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.