TeamCity REST API Reference 2025.11 Help

BuildType

A build configuration owned by a TeamCity project, or a template created from this configuration. Spawns builds to execute configured build steps.

Related Help article: Build Configuration

Properties

id

The build configuration ID. Typically consists of a trunkated project and configuration names in the ProjectName_ConfigurationName format.

internalId

The automatically generated build configuration ID. This is the internal property and is not intented to be used.

name

The public build configuration name displayed in TeamCity UI.

templateFlag

Returns true if the current BuildType entity is a build configuration template; false if this is a regular build configuration. Inspect the templates field to view all templates attached to the target configuration.

type

The build configuration type:

  • regular — a regular build configuration.

  • composite — a composite configuration that aggregates results of multiple upstream build chain configurations.

  • deployment — a deployment build configuration.

See Changing build configuration type for more information.

paused

Returns true if a configuration is paused and cannot start new builds automatically upon build trigger requests; otherwise, false. To pause or unpause a configuration, use the configuration's Actions menu in TeamCity UI or send a PUT request with the required Boolean value to the /app/rest/buildTypes/_build_type_locator_/paused endpoint.

uuid

An internally used universally unique identifier.

description

The custom build configuration description, or null if not set.

projectName

The public name of a parent TeamCity project.

projectId

The ID of a parent TeamCity project that owns this build configuration.

projectInternalId

The automatically generated ID of a parent project. This is the internal property and is not intented to be used.

href

The short link (without the address of a TeamCity server) to this build configuration.

webUrl

The regular URL for this build configuration or template.

inherited

Returns null for build configurations, true for configuration templates inherited from other templates, and false for regular templates extracted from build configurations. You can only create templates inherited from other base templates in Kotlin.

URL links for editing and viewing this build configuration.

project

The project that owns this build configuration or template.

templates

The list of all build configuration templates currently attached to this build configuration.

template

The first template from the templates collection. This field is only in effect for older versions of TeamCity where only one template could be attached to a build configuration.

vcs-root-entries

A collection of VcsEntry objects, which store attached VcsRoot objects coupled with their unique checkout rules for this build configuration.

settings

The list of build configuration settings. For example, its branch filter, current build number counter, and others.

parameters

The list of input parameters. Input parameters are designed to be used directly in their parent configuration. Includes parameters inherited from configuration's parent project(s).

output-parameters

The list of output parameters. Output parameters can be accessed by other configurations within the same build chain via the dep.config_id.parameter_name syntax. Does not duplicate the list of input parameters if the All parameters are available to other build configurations setting of a configuration is enabled.

steps

The list of enabled and disabled build steps owned by this configuration.

features

The list of enabled and disabled build features added to this configuration.

triggers

The list of build triggers configured in this configuration. Build triggers allow configurations to automatically start new builds when specific conditions are met. Triggers do not launch new builds for paused configurations.

snapshot-dependencies

The list of snapshot dependencies that specify which configurations must finish their builds before this configuration can run its build.

artifact-dependencies

The list of artifact dependencies that specify which files published by other build configurations must be imported to this configuration.

agent-requirements

The list of agent requirements that specify which build agents are eligible to run builds of this configuration. Does not include implicit build steps requirements.

branches

The list of repository branches that can be built in this build configuration. Supported branches are specified by the branch specs of attached VCS roots, and then filtered by configuration's branch filter (buildType.settings.branchFilter).

builds

Stores all builds spawned from this build configuration.

investigations

Stores active investigations for a build configuration. Note that this list stores investigations assigned on a build configuration level, and does not include investigations of individual build problems assigned from the build results page.

compatibleAgents

The list of build agents that are eligible to run builds of this configuration.

compatibleCloudImages

The list of cloud images that can spawn build agents eligible to run builds of this configuration.

vcsRootInstances

A collection of VcsRootInstance objects, which store customized clones of a VcsRoot.

externalStatusAllowed

This is the internal property and is not intented to be used.

pauseComment

A Comment entity storing the TeamCity user, date, and optional note for the last pause or unpause action on this configuration.

locator

Schema

Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.

A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.

<buildType description="Deploys artifacts to the public registry" externalStatusAllowed="false" href="/app/rest/buildTypes/id:Deployments_DeployToGlobal" id="Deployments_DeployToGlobal" inherited="false" internalId="bt1057" locator="string" name="Deploy To Global" paused="false" projectId="Deployments" projectInternalId="project762" projectName="Deployments" templateFlag="false" type="regular" uuid="8e7eafb8-321b-456e-84db-e73714c8fa3f" webUrl="https://localhost:8111/buildConfiguration/Deployments_DeployToGlobal?mode=builds"> <links count="123"> <link>[[[link...|link.html]]]</link> </links> <project archived="false" description="This subproject contains configurations that carry out delivery jobs" href="/app/rest/projects/id:BuildCacheNodeJS" id="BuildCacheNodeJS" internalId="project302" locator="string" name="Build Cache — NodeJS" parentProjectId="S3BucketsTest" parentProjectInternalId="project82" parentProjectName="S3 Buckets Test" uuid="37dccab8-ddf9-4f81-a1ad-7815f0e841e1" virtual="false" webUrl="https://localhost:8111/project.html?projectId=BuildAndDeploy"> <links>[[[links...|links.html]]]</links> <parentProject>[[[project...|project.html]]]</parentProject> <readOnlyUI>[[[StateField...|statefield.html]]]</readOnlyUI> <defaultTemplate>[[[buildType...|]]]</defaultTemplate> <buildTypes>[[[buildTypes...|buildtypes.html]]]</buildTypes> <templates>[[[buildTypes...|buildtypes.html]]]</templates> <deploymentDashboards>[[[deploymentDashboards...|deploymentdashboards.html]]]</deploymentDashboards> <parameters>[[[properties...|properties.html]]]</parameters> <vcsRoots>[[[vcs-roots...|vcsroots.html]]]</vcsRoots> <projectFeatures>[[[projectFeatures...|projectfeatures.html]]]</projectFeatures> <projects>[[[projects...|projects.html]]]</projects> <cloudProfiles>[[[cloudProfiles...|cloudprofiles.html]]]</cloudProfiles> <ancestorProjects>[[[projects...|projects.html]]]</ancestorProjects> </project> <templates count="30" href="/app/rest/vcs-roots?locator=count:30,start:20" nextHref="/app/rest/vcs-roots?locator=count:30,start:50" prevHref="/app/rest/vcs-roots?locator=count:20,start:0"> <buildType>[[[buildType...|]]]</buildType> </templates> <template description="Deploys artifacts to the public registry" externalStatusAllowed="false" href="/app/rest/buildTypes/id:Deployments_DeployToGlobal" id="Deployments_DeployToGlobal" inherited="false" internalId="bt1057" locator="string" name="Deploy To Global" paused="false" projectId="Deployments" projectInternalId="project762" projectName="Deployments" templateFlag="false" type="regular" uuid="8e7eafb8-321b-456e-84db-e73714c8fa3f" webUrl="https://localhost:8111/buildConfiguration/Deployments_DeployToGlobal?mode=builds"> <links>[[[links...|links.html]]]</links> <project>[[[project...|project.html]]]</project> <templates>[[[buildTypes...|buildtypes.html]]]</templates> <template>[[[buildType...|]]]</template> <vcs-root-entries>[[[vcs-root-entries...|vcsrootentries.html]]]</vcs-root-entries> <settings>[[[properties...|properties.html]]]</settings> <parameters>[[[properties...|properties.html]]]</parameters> <output-parameters>[[[properties...|properties.html]]]</output-parameters> <steps>[[[steps...|steps.html]]]</steps> <features>[[[features...|features.html]]]</features> <triggers>[[[triggers...|triggers.html]]]</triggers> <snapshot-dependencies>[[[snapshot-dependencies...|snapshotdependencies.html]]]</snapshot-dependencies> <artifact-dependencies>[[[artifact-dependencies...|artifactdependencies.html]]]</artifact-dependencies> <agent-requirements>[[[agent-requirements...|agentrequirements.html]]]</agent-requirements> <branches>[[[branches...|branches.html]]]</branches> <builds>[[[builds...|builds.html]]]</builds> <investigations>[[[investigations...|investigations.html]]]</investigations> <compatibleAgents>[[[agents...|agents.html]]]</compatibleAgents> <compatibleCloudImages>[[[cloudImages...|cloudimages.html]]]</compatibleCloudImages> <vcsRootInstances>[[[vcs-root-instances...|vcsrootinstances.html]]]</vcsRootInstances> <pauseComment>[[[comment...|comment.html]]]</pauseComment> </template> <vcs-root-entries count="3"> <vcs-root-entry>[[[vcs-root-entry...|vcsrootentry.html]]]</vcs-root-entry> </vcs-root-entries> <settings count="123" href="string"> <property>[[[property...|property.html]]]</property> </settings> <parameters count="123" href="string"> <property>[[[property...|property.html]]]</property> </parameters> <output-parameters count="123" href="string"> <property>[[[property...|property.html]]]</property> </output-parameters> <steps count="12"> <step>[[[step...|step.html]]]</step> </steps> <features count="1"> <feature>[[[feature...|feature.html]]]</feature> </features> <triggers count="5"> <trigger>[[[trigger...|trigger.html]]]</trigger> </triggers> <snapshot-dependencies count="3"> <snapshot-dependency>[[[snapshot-dependency...|snapshotdependency.html]]]</snapshot-dependency> </snapshot-dependencies> <artifact-dependencies count="3" replace="string"> <artifact-dependency>[[[artifact-dependency...|artifactdependency.html]]]</artifact-dependency> </artifact-dependencies> <agent-requirements count="3"> <agent-requirement>[[[agent-requirement...|agentrequirement.html]]]</agent-requirement> </agent-requirements> <branches count="4" href="/app/rest/buildTypes/MyProject_MyBuildConfig/branches"> <branch>[[[branch...|branch.html]]]</branch> </branches> <builds count="12" href="/app/rest/builds?locator=buildType:Project_Config&amp;fields=count,href" nextHref="/app/rest/builds?locator=count:200,start:250,state:finished" prevHref="/app/rest/builds?locator=count:50,start:0,state:finished"> <build>[[[build...|build.html]]]</build> </builds> <investigations count="30" href="/app/rest/investigations?locator=count:3,start:5" nextHref="/app/rest/investigations?locator=count:3,start:8" prevHref="/app/rest/investigations?locator=count:3,start:2"> <investigation>[[[investigation...|investigation.html]]]</investigation> </investigations> <compatibleAgents count="7" href="/app/rest/agents" nextHref="/app/rest/agents?locator=count:200,start:250" prevHref="/app/rest/agents?locator=count:50,start:0"> <agent>[[[agent...|agent.html]]]</agent> </compatibleAgents> <compatibleCloudImages count="10" href="/app/rest/cloud/images" nextHref="/app/rest/cloud/images?locator=count:200,start:250" prevHref="/app/rest/cloud/images?locator=count:50,start:0"> <cloudImage>[[[cloudImage...|cloudimage.html]]]</cloudImage> </compatibleCloudImages> <vcsRootInstances count="10" href="/app/rest/vcs-root-instances?locator=count:10,start:20" nextHref="/app/rest/vcs-root-instances?locator=count:10,start:30" prevHref="/app/rest/vcs-root-instances?locator=count:10,start:10"> <vcs-root-instance>[[[vcs-root-instance...|vcsrootinstance.html]]]</vcs-root-instance> </vcsRootInstances> <pauseComment text="string" timestamp="string"> <user>[[[user...|user.html]]]</user> </pauseComment> </buildType>
{ "template" : "[[[buildType...|]]]", "paused" : false, "output-parameters" : "[[[properties...|properties.html]]]", "description" : "Deploys artifacts to the public registry", "project" : "[[[project...|project.html]]]", "investigations" : "[[[investigations...|investigations.html]]]", "templateFlag" : false, "type" : "regular", "uuid" : "8e7eafb8-321b-456e-84db-e73714c8fa3f", "projectInternalId" : "project762", "internalId" : "bt1057", "features" : "[[[features...|features.html]]]", "builds" : "[[[builds...|builds.html]]]", "links" : "[[[links...|links.html]]]", "id" : "Deployments_DeployToGlobal", "href" : "/app/rest/buildTypes/id:Deployments_DeployToGlobal", "compatibleCloudImages" : "[[[cloudImages...|cloudimages.html]]]", "settings" : "[[[properties...|properties.html]]]", "vcsRootInstances" : "[[[vcs-root-instances...|vcsrootinstances.html]]]", "templates" : "[[[buildTypes...|buildtypes.html]]]", "artifact-dependencies" : "[[[artifact-dependencies...|artifactdependencies.html]]]", "compatibleAgents" : "[[[agents...|agents.html]]]", "pauseComment" : "[[[comment...|comment.html]]]", "triggers" : "[[[triggers...|triggers.html]]]", "branches" : "[[[branches...|branches.html]]]", "steps" : "[[[steps...|steps.html]]]", "externalStatusAllowed" : false, "agent-requirements" : "[[[agent-requirements...|agentrequirements.html]]]", "webUrl" : "https://localhost:8111/buildConfiguration/Deployments_DeployToGlobal?mode=builds", "inherited" : false, "snapshot-dependencies" : "[[[snapshot-dependencies...|snapshotdependencies.html]]]", "name" : "Deploy To Global", "vcs-root-entries" : "[[[vcs-root-entries...|vcsrootentries.html]]]", "projectName" : "Deployments", "projectId" : "Deployments", "parameters" : "[[[properties...|properties.html]]]", "locator" : "locator" }
Last modified: 02 December 2025