TeamCity REST API 2020.2 Help

BuildQueueApi

deleteAllQueuedBuilds

Delete all queued builds.

Endpoint

/app/rest/buildQueue

HTTP method

DELETE

Parameters

getAllQueuedBuilds

Get all queued builds.

Endpoint

/app/rest/buildQueue

HTTP method

GET

Parameters

Response

Builds

addBuildToQueue

Add a new build to the queue.

Endpoint

/app/rest/buildQueue

HTTP method

POST

Parameters

  • body: Build
  • moveToTop: boolean

Response

Build

setQueuedBuildsOrder

Update the build queue order.

Endpoint

/app/rest/buildQueue/order

HTTP method

PUT

Parameters

Response

Builds

getQueuedBuildPosition

Get the queue position of a queued matching build.

Endpoint

/app/rest/buildQueue/order/{queuePosition}

HTTP method

GET

Parameters

  • queuePosition: string
  • fields: string

Response

Build

setQueuedBuildPosition

Update the queue position of a queued matching build.

Endpoint

/app/rest/buildQueue/order/{queuePosition}

HTTP method

PUT

Parameters

  • queuePosition: string
  • body: Build
  • fields: string

Response

Build

getQueuedBuildTags

Get tags of the queued matching build.

Endpoint

/app/rest/buildQueue/{buildLocator}/tags

HTTP method

GET

Parameters

Response

Tags

addTagsToBuildOfBuildQueue

Add tags to the matching build.

Endpoint

/app/rest/buildQueue/{buildLocator}/tags

HTTP method

POST

Parameters

deleteQueuedBuild

Delete a queued matching build.

Endpoint

/app/rest/buildQueue/{queuedBuildLocator}

HTTP method

DELETE

Parameters

getQueuedBuild

Get a queued matching build.

Endpoint

/app/rest/buildQueue/{queuedBuildLocator}

HTTP method

GET

Parameters

Response

Build

cancelQueuedBuild

Cancel a queued matching build.

Endpoint

/app/rest/buildQueue/{queuedBuildLocator}

HTTP method

POST

Parameters

Response

Build

getCompatibleAgentsForBuild

Get compatible agents for a queued matching build.

Endpoint

/app/rest/buildQueue/{queuedBuildLocator}/compatibleAgents

HTTP method

GET

Parameters

Response

Agents

Last modified: 21 December 2020