TeamCity 2021.1 Help

VcsRootApi

getAllVcsRoots

Get all VCS roots.

Endpoint

/app/rest/vcs-roots

HTTP method

GET

Produces

  • application/xml
  • application/json

Parameters

Response

VcsRoots

addVcsRoot

Add a new VCS root.

Endpoint

/app/rest/vcs-roots

HTTP method

POST

Consumes

  • application/xml
  • application/json

Produces

  • application/xml
  • application/json

Parameters

Response

VcsRoot

deleteVcsRoot

Remove VCS root matching the locator.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}

HTTP method

DELETE

Parameters

getRootEndpoints

Get root endpoints.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}

HTTP method

GET

Produces

  • application/xml
  • application/json

Parameters

Response

VcsRoot

getVcsRootInstances

Get all VCS root instances of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/instances

HTTP method

GET

Produces

  • application/xml
  • application/json

Parameters

Response

VcsRootInstances

deleteAllVcsRootProperties

Delete all properties of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/properties

HTTP method

DELETE

Parameters

getAllVcsRootProperties

Get all properties of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/properties

HTTP method

GET

Produces

  • application/xml
  • application/json

Parameters

Response

Properties

setVcsRootProperties

Update all properties of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/properties

HTTP method

PUT

Consumes

  • application/xml
  • application/json

Produces

  • application/xml
  • application/json

Parameters

Response

Properties

deleteVcsRootProperty

Delete a property of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/properties/{name}

HTTP method

DELETE

Parameters

getVcsRootProperty

Get a property on the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/properties/{name}

HTTP method

GET

Produces

  • text/plain

Parameters

Response

string

setVcsRootProperty

Update a property of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/properties/{name}

HTTP method

PUT

Consumes

  • text/plain

Produces

  • text/plain

Parameters

Response

string

getVcsRootSettingsFile

Get the settings file of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/settingsFile

HTTP method

GET

Produces

  • text/plain

Parameters

Response

string

getVcsRootField

Get a field of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/{field}

HTTP method

GET

Produces

  • text/plain

Parameters

Response

string

setVcsRootField

Update a field of the matching VCS root.

Endpoint

/app/rest/vcs-roots/{vcsRootLocator}/{field}

HTTP method

PUT

Consumes

  • text/plain

Produces

  • text/plain

Parameters

Response

string

Last modified: 20 February 2021