TeamCity REST API Reference 2026.2 Help

ProblemOccurrences

A summary of test or problem occurrence counts for a build. Used as the base type for TestOccurrences and ProblemOccurrences.

Properties

count

The current number of ProblemOccurrence objects in this list.

href

The relative link (without the TeamCity server URL) used to retrieve this object.

nextHref

If the list of returned entities exceeds the request count value, TeamCity splits it into multiple batches. This property returns the endpoint that allows you to obtain the next batch.

prevHref

If the list of returned entities exceeds the request count value, TeamCity splits it into multiple batches. This property returns the endpoint that allows you to obtain the previous batch.

problemOccurrence

The list of ProblemOccurrence objects owned by this collection.

passed

The number of passed test runs in this build. Not populated in ProblemOccurrences.

failed

The number of failed test runs in this build. Not populated in ProblemOccurrences.

newFailed

The number of test runs or problems that failed for the first time in this build (were not failing in the previous build).

ignored

The number of ignored test runs in this build. Not populated in ProblemOccurrences.

muted

The number of muted test runs or problems in this build. Failures in muted tests and problems do not affect the build status.

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.

<problemOccurrences count="1" failed="3" href="/app/rest/problemOccurrences?locator=build:(id:22011)" ignored="2" muted="0" newFailed="1" nextHref="/app/rest/problemOccurrences?locator=build:(id:22011),start:100" passed="42" prevHref="/app/rest/problemOccurrences?locator=build:(id:22011),start:0"> <problemOccurrence>[[[problemOccurrence...|problemoccurrence.html]]]</problemOccurrence> </problemOccurrences>
{ "ignored" : 2, "newFailed" : 1, "count" : 1, "prevHref" : "/app/rest/problemOccurrences?locator=build:(id:22011),start:0", "problemOccurrence" : [ { "newFailure" : true, "mute" : { "assignment" : { "text" : "Muted due to known flakiness", "user" : "[[[user...|user.html]]]", "timestamp" : "20260401T013826+0200" }, "scope" : { "buildTypes" : { "buildType" : [ "[[[buildType...|buildtype.html]]]" ], "count" : 30, "prevHref" : "/app/rest/vcs-roots?locator=count:20,start:0", "href" : "/app/rest/vcs-roots?locator=count:30,start:20", "nextHref" : "/app/rest/vcs-roots?locator=count:30,start:50" }, "buildType" : { "template" : "[[[buildType...|buildtype.html]]]", "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" : "id:Deployments_DeployToGlobal" }, "project" : { "holdsPipeline" : false, "virtual" : false, "parentProjectName" : "S3 Buckets Test", "vcsRoots" : { "count" : 10, "vcs-root" : [ "[[[vcs-root...|vcsroot.html]]]" ], "prevHref" : "/app/rest/vcs-roots?locator=count:10,start:90", "href" : "/app/rest/vcs-roots?locator=count:10,start:100", "nextHref" : "/app/rest/vcs-roots?locator=count:10,start:110" }, "projects" : { "count" : 39, "project" : [ "[[[project...|project.html]]]" ], "prevHref" : "/app/rest/projects?locator=count:10,start:0", "href" : "/app/rest/projects?locator=count:30,start:10", "nextHref" : "/app/rest/projects?locator=count:30,start:40" }, "defaultTemplate" : { "template" : "[[[buildType...|buildtype.html]]]", "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" : "id:Deployments_DeployToGlobal" }, "description" : "This subproject contains configurations that carry out delivery jobs", "uuid" : "37dccab8-ddf9-4f81-a1ad-7815f0e841e1", "parentProjectInternalId" : "project82", "cloudProfiles" : { "count" : 4, "prevHref" : "/app/rest/cloud/profiles?locator=count:50,start:0", "href" : "/app/rest/cloud/profiles", "cloudProfile" : [ "[[[cloudProfile...|cloudprofile.html]]]" ], "nextHref" : "/app/rest/cloud/profiles?locator=count:200,start:250" }, "internalId" : "project302", "archived" : false, "parentProjectId" : "S3BucketsTest", "deploymentDashboards" : { "count" : 3, "deploymentDashboard" : [ "[[[deploymentDashboard...|deploymentdashboard.html]]]" ], "prevHref" : "/app/rest/deploymentDashboards?locator=count:100,start:0", "href" : "/app/rest/deploymentDashboards", "nextHref" : "/app/rest/deploymentDashboards?locator=count:100,start:100" }, "links" : { "link" : [ "[[[link...|link.html]]]" ], "count" : 1 }, "id" : "BuildCacheNodeJS", "href" : "/app/rest/projects/id:BuildCacheNodeJS", "parentProject" : { "holdsPipeline" : false, "virtual" : false, "parentProjectName" : "S3 Buckets Test", "vcsRoots" : "[[[vcs-roots...|vcsroots.html]]]", "projects" : "[[[projects...|projects.html]]]", "defaultTemplate" : "[[[buildType...|buildtype.html]]]", "description" : "This subproject contains configurations that carry out delivery jobs", "uuid" : "37dccab8-ddf9-4f81-a1ad-7815f0e841e1", "parentProjectInternalId" : "project82", "cloudProfiles" : "[[[cloudProfiles...|cloudprofiles.html]]]", "internalId" : "project302", "archived" : false, "parentProjectId" : "S3BucketsTest", "deploymentDashboards" : "[[[deploymentDashboards...|deploymentdashboards.html]]]", "links" : "[[[links...|links.html]]]", "id" : "BuildCacheNodeJS", "href" : "/app/rest/projects/id:BuildCacheNodeJS", "parentProject" : "[[[project...|project.html]]]", "templates" : "[[[buildTypes...|buildtypes.html]]]", "readOnlyUI" : "[[[StateField...|statefield.html]]]", "webUrl" : "https://localhost:8111/project.html?projectId=BuildAndDeploy", "buildTypes" : "[[[buildTypes...|buildtypes.html]]]", "name" : "Build Cache — NodeJS", "ancestorProjects" : "[[[projects...|projects.html]]]", "parameters" : "[[[properties...|properties.html]]]", "projectFeatures" : "[[[projectFeatures...|projectfeatures.html]]]", "locator" : "id:MyProject" }, "templates" : { "buildType" : [ "[[[buildType...|buildtype.html]]]" ], "count" : 30, "prevHref" : "/app/rest/vcs-roots?locator=count:20,start:0", "href" : "/app/rest/vcs-roots?locator=count:30,start:20", "nextHref" : "/app/rest/vcs-roots?locator=count:30,start:50" }, "readOnlyUI" : { "inherited" : false, "value" : false }, "webUrl" : "https://localhost:8111/project.html?projectId=BuildAndDeploy", "buildTypes" : { "buildType" : [ "[[[buildType...|buildtype.html]]]" ], "count" : 30, "prevHref" : "/app/rest/vcs-roots?locator=count:20,start:0", "href" : "/app/rest/vcs-roots?locator=count:30,start:20", "nextHref" : "/app/rest/vcs-roots?locator=count:30,start:50" }, "name" : "Build Cache — NodeJS", "ancestorProjects" : { "count" : 39, "project" : [ "[[[project...|project.html]]]" ], "prevHref" : "/app/rest/projects?locator=count:10,start:0", "href" : "/app/rest/projects?locator=count:30,start:10", "nextHref" : "/app/rest/projects?locator=count:30,start:40" }, "parameters" : { "count" : 3, "property" : [ { "inherited" : false, "name" : "my.build.param", "type" : "[[[type...|type.html]]]", "value" : "production" } ], "href" : "/app/rest/buildTypes/id:MyBuild/parameters" }, "projectFeatures" : { "projectFeature" : [ "[[[projectFeature...|projectfeature.html]]]" ], "count" : 3, "href" : "/app/rest/projects/id:MyProject/projectFeatures" }, "locator" : "id:MyProject" } }, "id" : 1, "href" : "/app/rest/mutes/id:1", "resolution" : { "time" : "20240101T120000+0000", "type" : "whenFixed" }, "target" : { "tests" : { "test" : [ { "testOccurrences" : "[[[testOccurrences...|testoccurrences.html]]]", "name" : "com.mycompany.app.AppTest.testAppMessage", "investigations" : "[[[investigations...|investigations.html]]]", "parsedTestName" : "[[[ParsedTestName...|parsedtestname.html]]]", "id" : "123456789", "href" : "/app/rest/tests/id:123456789", "mutes" : "[[[mutes...|mutes.html]]]", "locator" : "id:123456789" } ], "count" : 10, "myTestCounters" : { "all" : 15, "duration" : 12345, "ignored" : 1, "newFailed" : 2, "success" : 10, "failed" : 3, "muted" : 1 }, "prevHref" : "/app/rest/tests?locator=start:0", "nextHref" : "/app/rest/tests?locator=start:100" }, "anyProblem" : true, "problems" : { "problem" : [ { "problemOccurrences" : "[[[problemOccurrences...|]]]", "identity" : "simpleRunnerfail_build_127", "description" : "description", "investigations" : "[[[investigations...|investigations.html]]]", "id" : "211", "href" : "/app/rest/problems/id:211", "type" : "TC_EXIT_CODE", "mutes" : "[[[mutes...|mutes.html]]]", "locator" : "id:211" } ], "count" : 1, "prevHref" : "/app/rest/problems?locator=start:0", "nextHref" : "/app/rest/problems?locator=start:100" } } }, "type" : "TC_EXIT_CODE", "currentlyInvestigated" : false, "logAnchor" : "1024", "problem" : { "problemOccurrences" : "[[[problemOccurrences...|]]]", "identity" : "simpleRunnerfail_build_127", "description" : "description", "investigations" : "[[[investigations...|investigations.html]]]", "id" : "211", "href" : "/app/rest/problems/id:211", "type" : "TC_EXIT_CODE", "mutes" : "[[[mutes...|mutes.html]]]", "locator" : "id:211" }, "build" : { "agent" : "[[[agent...|agent.html]]]", "metadata" : "[[[datas...|datas.html]]]", "triggered" : "[[[TriggeredBy...|triggeredby.html]]]", "usedByOtherBuilds" : true, "settingsHash" : "a3f5c2e1d8b74906", "parallelized" : true, "number" : "54", "chainModificationId" : "1916", "changesCollectingInProgress" : false, "lastChanges" : "[[[changes...|changes.html]]]", "resultingProperties" : "[[[properties...|properties.html]]]", "composite" : false, "executor" : "[[[BuildExecutor...|buildexecutor.html]]]", "links" : "[[[links...|links.html]]]", "id" : 8134, "state" : "queued", "href" : "/app/rest/builds/id:8006", "detachedFromAgent" : false, "compatibleCloudImages" : "[[[cloudImages...|cloudimages.html]]]", "artifacts" : "[[[files...|files.html]]]", "testOccurrences" : "[[[testOccurrences...|testoccurrences.html]]]", "artifactDependencyChanges" : "[[[buildChanges...|buildchanges.html]]]", "startProperties" : "[[[properties...|properties.html]]]", "defaultBranch" : true, "compatibleAgents" : "[[[agents...|agents.html]]]", "artifact-dependencies" : "[[[builds...|builds.html]]]", "replacementIds" : "[[[items...|items.html]]]", "personal" : true, "history" : true, "tags" : "[[[tags...|tags.html]]]", "canceledInfo" : "[[[comment...|comment.html]]]", "matrixConfiguration" : "[[[MatrixConfiguration...|matrixconfiguration.html]]]", "running-info" : "[[[progress-info...|progressinfo.html]]]", "versionedSettingsRevision" : "[[[Revision...|revision.html]]]", "percentageComplete" : 6, "webUrl" : "https://example.com/app/rest/builds/id:8006", "buildType" : "[[[buildType...|buildtype.html]]]", "triggeringOptions" : "[[[buildTriggeringOptions...|buildtriggeringoptions.html]]]", "locator" : "id:22011", "startDate" : "20240408T162559+0200", "status" : "SUCCESS", "pinned" : true, "customized" : true, "approvalInfo" : "[[[approvalInfo...|approvalinfo.html]]]", "vcsLabels" : [ "[[[vcsLabel...|vcslabel.html]]]" ], "customization" : "[[[customizations...|customizations.html]]]", "finishEstimate" : "20240409T160130+0200", "changes" : "[[[changes...|changes.html]]]", "plannedAgent" : "[[[agent...|agent.html]]]", "running" : true, "statusChangeComment" : "[[[comment...|comment.html]]]", "finishOnAgentDate" : "20240408T162702+0200", "buildTypeId" : "ProjectName_BuildConfName", "buildTypeInternalId" : "buildTypeInternalId", "originalProperties" : "[[[properties...|properties.html]]]", "modificationId" : "1916", "related" : "[[[related...|related.html]]]", "failedToStart" : true, "revisions" : "[[[Revisions...|revisions.html]]]", "delayedByBuild" : "[[[build...|build.html]]]", "queuePosition" : 2, "problemOccurrences" : "[[[problemOccurrences...|]]]", "anchorBuild" : "[[[build...|build.html]]]", "artifactsDirectory" : "/Users/John.Doe/.BuildServer/system/artifacts/ProjectName/ConfigName/1337", "relatedIssues" : "[[[issuesUsages...|issuesusages.html]]]", "branchName" : "sandbox", "startEstimate" : "20240409T155123+0200", "downloadedArtifacts" : "[[[downloadedArtifacts...|downloadedartifacts.html]]]", "limitedChangesCount" : 3, "firstBuildWithSameChanges" : "[[[build...|build.html]]]", "currentSettingsHash" : "a3f5c2e1d8b74906", "unspecifiedBranch" : false, "queuedWaitReasons" : "[[[properties...|properties.html]]]", "waitReason" : "There are no idle compatible agents which can run this build", "pinInfo" : "[[[comment...|comment.html]]]", "snapshot-dependencies" : "[[[builds...|builds.html]]]", "statusText" : "Tests passed: 5, muted: 1", "custom-artifact-dependencies" : "[[[artifact-dependencies...|artifactdependencies.html]]]", "comment" : "[[[comment...|comment.html]]]", "finishDate" : "20240408T162702+0200", "attributes" : "[[[entries...|entries.html]]]", "user" : "[[[user...|user.html]]]", "queuedDate" : "20240408T162059+0200", "taskId" : 22011, "properties" : "[[[properties...|properties.html]]]", "statistics" : "[[[properties...|properties.html]]]" }, "identity" : "simpleRunnerfail_build_127", "currentlyMuted" : false, "details" : "Process exited with code 127 (Step: fail build (Command Line))", "id" : "build:(id:22011),problem:(id:211)", "href" : "/app/rest/problemOccurrences/build:(id:22011),problem:(id:211)", "additionalData" : "additionalData", "muted" : false } ], "href" : "/app/rest/problemOccurrences?locator=build:(id:22011)", "passed" : 42, "failed" : 3, "muted" : 0, "nextHref" : "/app/rest/problemOccurrences?locator=build:(id:22011),start:100" }
Last modified: 18 August 2026