Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,359,907
Community Members
 
Community Events
168
Community Groups

Setting Bamboo project variables via REST api

Edited

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.

 

1 answer

A possible solution is to pass the following xml as your request body:

<variable name="ABC" value="123"/>

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

304 views 0 7
Read article

Atlassian Community Events