---
title: "Move or rename a user data file"
method: POST
path: "/api/userdata/{file}/move/{dest}"
tags: ["user"]
---

# Move or rename a user data file

`POST /api/userdata/{file}/move/{dest}`

Move or rename a file within a user's data directory, with options for
controlling overwrite behavior and response format.

## Path parameters

- `file` string, required
- `dest` string, required

## Query parameters

- `overwrite` 'true' | 'false'

## Response `200`

File moved successfully.

- UserDataResponseFull — User data listing entry with file metadata (path, size, modification time).
  - `modified` integer — UNIX timestamp of the last modification in milliseconds.
  - `path` string
  - `size` integer

## Other responses

- `400` — Missing or invalid parameters.
- `401` — Unauthorized.
- `404` — Source file not found.
- `409` — Destination file already exists and overwrite is set to false.
- `500` — General error

---

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