You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
According to this documentation there is an endpoint to GET project variables:
https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-project-projectkey-variables-get
But according to this documentation only POST is avaiable?
https://docs.atlassian.com/atlassian-bamboo/REST/8.0.4/#d2e271
I'm getting a 403 but able to hit other endpoints on the project like repositories. Any ideas on what my issue is or if GET is even supported for this endpoint?
Hello @Toby_Matherly
The /project/<project_name>/variables endpoint was introduced in Bamboo 8.1 and supports GET normally:
# curl -s -u admin:admin --request GET \
--url 'https://bamboo819.mydomain.net/rest/api/latest/project/ABC/variables' \
-X GET \
--header 'Accept: application/json' | jq
[
{
"name": "Foo123",
"value": "123"
}
]
The Bamboo RESPI API documentation found on developer.atlassian.com will always revert to the latest API version. For specific versions, check docs.atlassian.com. The latter can be deprecated at any time.
Best regards,
Eduardo Alvarenga
Atlassian Support APAC
--please don't forget to Accept the answer if the reply is helpful--
Thank you @Eduardo A ! This is very helpful. We are currently on 8.04 so that explains why the GET endpoint is still not available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.