TeamCity REST API Reference 2023.05 Help

VcsRootInstanceApi

getAllVcsRootInstances

Get all VCS root instances.

Endpoint

/app/rest/vcs-root-instances

Produces

  • application/xml

  • application/json

Parameters

Response

VcsRootInstances

requestPendingChangesCheck

Check for the pending changes for all VCS root instances.

Endpoint

/app/rest/vcs-root-instances/checkingForChangesQueue

Produces

  • application/xml

  • application/json

Parameters

Response

VcsRootInstances

triggerCommitHookNotification

Send the commit hook notification.

Endpoint

/app/rest/vcs-root-instances/commitHookNotification

Produces

  • text/plain

Parameters

getVcsRootInstance

Get VCS root instance matching the locator.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}

Produces

  • application/xml

  • application/json

Parameters

Response

VcsRootInstance

getFilesList

List all files.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest

Produces

  • application/xml

  • application/json

Parameters

Response

Files

getZippedFile

Get specific file zipped.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/archived{path}

Produces

  • */*

Parameters

downloadFile

Download specific file.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/files{path}

Produces

  • */*

Parameters

getFileMetadata

Get metadata of specific file.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/metadata{path}

Produces

  • application/xml

  • application/json

Parameters

Response

file

getFilesListForSubpath

List files under this path.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/files/latest/{path}

Produces

  • application/xml

  • application/json

Parameters

Response

Files

getVcsRootInstanceProperties

Get all properties of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/properties

Produces

  • application/xml

  • application/json

Parameters

Response

Properties

deleteVcsRootInstanceRepositoryState

Delete the last repository state of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState

Parameters

getVcsRootInstanceRepositoryState

Get the repository state of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState

Produces

  • application/xml

  • application/json

Parameters

Response

Entries

setVcsRootInstanceRepositoryState

Update the repository state of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState

Consumes

  • application/xml

  • application/json

Produces

  • application/xml

  • application/json

Parameters

Response

Entries

getVcsRootInstanceCreationDate

Get the creation date of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/repositoryState/creationDate

Consumes

  • text/plain

Produces

  • text/plain

Parameters

Response

string

deleteVcsRootInstanceField

Remove a field of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field}

Parameters

getVcsRootInstanceField

Get a field of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field}

Produces

  • text/plain

Parameters

Response

string

setVcsRootInstanceField

Get a field of the matching VCS root instance.

Endpoint

/app/rest/vcs-root-instances/{vcsRootInstanceLocator}/{field}

Consumes

  • text/plain

Produces

  • text/plain

Parameters

Response

string

Last modified: 30 March 2022