1

Is it possible to edit assigned compatible configurations for agents in teamcity rest api?
(I am using 9.0.2).

Himanshu
  • 4,327
  • 16
  • 31
  • 39
MTZ4
  • 2,274
  • 2
  • 25
  • 41

1 Answers1

1

Yes - you can add or remove any project to any agent pool through the REST API:

POST the plain text (name) to http://teamcity.url/app/rest/agentPools/id:XXX/projects

Delete a project from a pool: DELETE http://teamcity.url/app/rest/agentPools/id:XXX/projects/id:YYY

See the docs here.

An agent pool is just a n:m mapping concept in TeamCity that allows you to specify which agents can run which projects - it allows for more flexibility than directly assigning agents to projects.

BrokenGlass
  • 158,293
  • 28
  • 286
  • 335