---
title: "copy"
method: PUT
path: "/api/v0/commands/copy_direct/"
tags: ["Instances"]
---

# copy

`PUT /api/v0/commands/copy_direct/`

Initiate a remote copy operation to transfer data from one instance to another or between an instance and the local machine.

CLI Usage: `vastai copy <src_id> <dst_id> <src_path> <dst_path>`

## Request body

- object
  - `src_id` string — ID of the source instance.
  - `dst_id` string — ID of the destination instance.
  - `src_path` string, required — Path of the source data.
  - `dst_path` string, required — Path of the destination data.

## Response `200`

Remote copy initiated successfully.

- object
  - `success` boolean
  - `msg` string

## Other responses

- `400` — Invalid arguments provided.
- `404` — Source or destination ID not found or access denied.

---

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