Skip to main content
The Groups/{Group name}/AddAgents API allows you to assign one or more Agents to an existing Build Group. You cannot perform the Agent Assignment action if:
  • The Agent is currently participating in a build execution.
  • The Agent is offline.
 Request Syntax
Where: In the following example, a request is sent to assign three Agents to the QA Build Group: 
Response Syntax When an Agent is successfully assigned to the specified Build Group, the result is: “{Agent name}”: “OK”. For example:
Errors The request fails if:
  • The Agent is currently participating in a build execution.
  • The Agent does not exist.
  • The Agent is offline.
  • The Build Group does not exist.
In the following example, one Agent is currently offline, while another Agent does not exist: