Mutation

move_agent_pool

Moves an agent from its current pool to a new pool.

Arguments

input: MoveAgentPoolInput!

The fields used to specify which agent you want to move, and which pool it should now be in.


Input Fields

agent_id(): ID!
The unique identifier of the agent you want to move.
agent_pool_id(): ID!
The unique identifier of the pool you wish to move the agent to.

Return Fields

agent(): Agent
The updated agent machine.

Example

Query
mutation MoveAgentPool($input: MoveAgentPoolInput!) {
  move_agent_pool(input: $input) {
    agent {
      id
      name
      agent_pool {
        id
        name
      }
    }
  }
}
Variables
{
  "input": {
    "agent_id": "1",
    "agent_pool_id": "1"
  }
}
Result
{
  "data": {
    "move_agent_pool": {
      "agent": {
        "id": "1",
        "name": "Example agent",
        "agent_pool": {
          "id": "1",
          "name": "Production pool"
        }
      }
    }
  }
}