operations

Copy a single file

Changed on

Copies one object from a source remote and path to a destination remote and path.

post/operations/copyfile

Request

Headers

Prefer'respond-async'

Set to respond-async to run the call in the background. Rclone returns a 202 with a job ID right away, and job/status reports progress. This has the same effect as the _async param in rclone's docs, but _async alone returns a 200 instead of a 202.

Request body

_configobject

Config overrides for this call only.

_filterobject

Filter overrides for this call only.

_groupstring

Stats group for this call.

srcRemotestring required

Path to the source object within srcFs, for example dir/file.txt.

dstRemotestring required

Target path within dstFs where the file should be written.

Response

Request succeeded returning an empty JSON object.

object required

Changes