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 Alvarenga ! 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.