---
title: "Move a single file"
method: POST
path: "/operations/movefile"
---

# Move a single file

`POST /operations/movefile`

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

## Query parameters

- `srcFs` string
- `srcRemote` string
- `dstFs` string
- `dstRemote` string
- `_group` string
- `_async` boolean

## Headers

- `Prefer` 'respond-async'

## Request body

- OperationsMovefileRequest
  - `srcFs` string — Source remote name or path containing the file to move.
  - `srcRemote` string — Path to the source object within `srcFs`.
  - `dstFs` string — Destination remote name or path where the file will be moved.
  - `dstRemote` string — Destination path within `dstFs` for the moved object.
  - `_group` string — Assign the request to a custom stats group.
  - `_async` boolean — Run the command asynchronously. Returns a job id immediately.

## Response `200`

Request succeeded returning an empty JSON object.

- object

## Other responses

- `202` — Request accepted for async processing. Poll /job/status with the returned jobid.
- `4XX` — Any error response (HTTP 4xx/5xx)
- `5XX` — Any error response (HTTP 4xx/5xx)

## Changes

> 21 revisions in range; 17 could not be searched.

- **2026-06-05** `2849bf2803ce` — 1 warning, 2 info
  - removed the optional property `jobid` from the response with the `200` status
  - added the new optional `header` request parameter `Prefer`
  - added the success response with the status `202`
- **2025-12-06** `30e239e76ba1` — 10 breaking, 1 warning
  - removed the request body
  - the `query` request parameter `dstFs` became required
  - the `query` request parameter `dstRemote` became required
  - the `query` request parameter `srcFs` became required
  - …7 more

[Change history](https://skmtc.dev/rclone/apis/rclone-rc-api/changes/operations/movefile/post.md)

---

[API](https://skmtc.dev/rclone/apis/rclone-rc-api.md) · [All operations](https://skmtc.dev/rclone/apis/rclone-rc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rclone/rclone-rc-api/revisions/adc0c129da4f/schema)
