Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 Data Center is here!

G’day Bamboo customers, The wait is over! Bamboo Data Center edition you have been asking for is finally here! This self-managed enterprise offering of Bamboo has the resilience, reliability, and s...

534 views 1 17
Read article

Community Events

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

Events near you