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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


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
Community Members
Community Events
Community Groups

Bamboo REST API: Not returning XML responses

Using Postman I'm trying to get Bamboo REST API calls to return in XML format, however the server replies with a 406 Not Acceptable response. Following the documentation here I'm sending an Accept header with the value "application/xml".

If I make the same call either omitting the header or specifying "application/json" I get the expected JSON response.

I couldn't find any API-related settings in the Bamboo admin menu, nor any documentation suggesting XML responses had been deprecated or removed.

What am I missing?


Example request headers:

GET /rest/api/latest/deploy/environment/207781962/results HTTP/1.1
Host: bamboo.wnet.local
Accept: application/xml
Authorization: Basic #############
User-Agent: PostmanRuntime/7.15.2
Cache-Control: no-cache
Postman-Token: 0dd05a32-15f4-4266-8282-490a8c8a56cb,98cdb200-3739-4bbf-a2bb-582c50ce4d29
Host: bamboo.wnet.local
Cookie: JSESSIONID=07BC7073BEE94B1828AEAD37BAD23A76
Accept-Encoding: gzip, deflate
Connection: keep-alive
cache-control: no-cache

Bamboo Server version: 6.8.1

1 answer

1 accepted

3 votes
Answer accepted
Rafael Pinto Sperafico
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Aug 31, 2019

Hi @steven_green ,

I am afraid this REST API endpoint will only provide you a JSON response as its implementation only produces JSON and not XML:

@Path(RestConstants.DEPLOYMENT_ENDPOINT + "/" + RestConstants.ENVIRONMENT)
public class DeploymentEnvironmentResource {

* Provide list of versions deployed to environment
public RestDeploymentResultList getDeploymentResultList(

The same information is available on Bamboo's REST API documentation -

Screenshot 2019-08-31 at 11.49.34.png

Kind regards,

Ah yes, I must have skimmed past this part of the preamble: "If not otherwise indicated, all methods return both XML and JSON."

What threw me off was that if you expand the section highlighted in your screenshot the example response is in XML.

Thanks for your answer, I'll mark it as accepted.


Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events