According to the instructions in https://confluence.jetbrains.com/display/TCD9/REST+API#RESTAPI-Agents
I can move a build agent to a different pool via the following call -
Move an agent to the pool from the previous pool:
POST <agent id='YYY'/> to the pool's agents http://teamcity.url/app/rest/agentPools/id:XXX/agents
But I have tried doing a POST as per above instructions, but all I got was the details of the build agent I was trying to move to another pool? Nothing happened after that.
I have attached the response returned from the api call.
Have anyone come across this issue before?
curl -v -u user:password http://teamcity.url/app/rest/agentPools/id:XXX/agents --request POST --header "Content-Type:application/xml" --data "<agent id='1'/>"