---
title: "Move Agent"
method: POST
path: "/v2/agents/{agent_id}/move"
tags: ["Agents"]
---

# Move Agent

`POST /v2/agents/{agent_id}/move`

Move an agent (and its connected workspace) to a different team. Pass dry_run=true to preview the closure without applying changes.

## Path parameters

- `agent_id` string, uuid, required

## Query parameters

- `dry_run` union
  - boolean
  - 'true'
  - 'false'

## Request body

- object
  - `target_team_id` string, uuid, required — The ID of the team to move the agent into.
  - `move_learnings` boolean — Whether to carry the agent's accumulated learnings across. Defaults to true.
  - `bypass_standalone_gate` boolean — When true, move the agent together with every connected queue, trigger, and handover peer instead of rejecting a non-standalone agent. Defaults to false.

## Response `200`

Default Response

- object
  - `source_team_id` string, required
  - `target_team_id` string, required
  - `root_agent_id` string, required
  - `agents` object[], required
    - `id` string, required
    - `name` string, required
  - `queues` object[], required
    - `id` string, required
    - `name` string, required
    - `item_count` number, required
  - `total_case_items` number, required
  - `total_runs` number, required
  - `skills_to_clone` object[], required
    - `id` string, required
    - `name` string, required
  - `files_to_copy` object[], required
    - `path` string, required
  - `warnings` object, required
    - `outcome` object, required
      - `instances_reconnected` object[], required
        - `agent_id` string, required
        - `agent_name` string, required
        - `integration_type` string, required
        - `integration_name` string, required
        - `instance_name` string, required
        - `decision` 'reuse' | 'needs_reconnect' | 'unmatched_integration' | 'custom_to_rebuild', required
      - `instances_disconnected` object[], required
        - `agent_id` string, required
        - `agent_name` string, required
        - `integration_type` string, required
        - `integration_name` string, required
        - `instance_name` string, required
        - `decision` 'reuse' | 'needs_reconnect' | 'unmatched_integration' | 'custom_to_rebuild', required
      - `custom_integrations_to_rebuild` object[], required
        - `agent_id` string, required
        - `agent_name` string, required
        - `custom_integration_name` string, required
      - `catalog_rows_created_on_target` number, required
    - `dropped_folders` object[], required
      - `id` string, required
      - `name` string, required
    - `dropped_memory_count` number, required
    - `files_copied_count` number, required
    - `files_skipped_conflict` string[], required
  - `options` object, required
    - `move_learnings` boolean, required
  - `applied` boolean, required

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `409` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/duvo/apis/duvo-public-api.md) · [All operations](https://skmtc.net/duvo/apis/duvo-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/duvo/duvo-public-api/revisions/dafcf3d868a9/schema)
