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

Setting Bamboo project variables via REST api

yevhen_rudenko October 23, 2020


I'm looking for a way to programmatically define project variables (a new feature since Bamboo 7.1.2).

There is a REST endpoint

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.



1 answer

0 votes
yevhen_rudenko October 27, 2020

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
AUG Leaders

Atlassian Community Events