There are a number of characteristics that are common across the Bamboo REST APIs. These are described below.

On this page:

REST Authentication

You can authenticate yourself for the REST APIs in two ways:

REST Resources and URI Structure

URIs for a Bamboo REST API resource have the following structure:

http://host:port/bamboo/rest/api-name/api-version/resource-name



Example:

http://myhost.com:8085/bamboo/rest/api/latest/plan

Here is an explanation for each part of the URI:

Refer to the details of the specific REST resources.

Media Types

The Bamboo REST APIs return HTTP responses in one of the following formats:

Response Format

Requested via...

JSON

Requested via one of the following:

  • application/json in the HTTP Accept header
  • .json extension

XML

Requested via one of the following:

  • application/xml in the HTTP Accept header
  • .xml extension

Example:
To request an HTTP response on JSON format:

http://myhost.com:8085/bamboo/rest/api/latest/plan.json

API Versions

The Bamboo REST APIs are version controlled. The version number of an API appears in its URI. For example, use this URI structure to request version 1 of the Bamboo REST API:

http://myhost.com:8085/bamboo/rest/api/1/

To get the latest version of the API, you can also use the latest key-word. For example, if versions 1 and 2 of the 'admin' API are available, the following two URIs will point to the same resources:

Notes:

HTTP Response Codes

An error condition will return an HTTP error code as described in the Atlassian REST Guidelines.

Methods

You will use the standard HTTP methods to access Bamboo via the REST APIs. Please refer to the resource descriptions for further details.