---
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

## Changes

- **2026-06-03** `8560879e6188` — 2 breaking, 2 warning, 7 info
  - the `query` request parameter `overwrite` was restricted to a list of enum values
  - for the `query` request parameter `overwrite`, default value `true` was added
  - deleted the `header` request parameter `Comfy-User`
  - deleted the `query` request parameter `full_info`
  - …7 more
- **2026-05-22** `c4db9e1283df` — 1 breaking, 4 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - removed `#/components/schemas/GetUserDataResponseFullFile, subschema #2` from the response body `oneOf` list for the response status `200`
  - added the optional property `modified` to the response with the `200` status
  - added the optional property `path` to the response with the `200` status
  - …1 more
- **2026-05-22** `09a5075587c8` — 3 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `500`
- **2026-04-24** `a66055fa384e` — 8 breaking, 3 warning, 7 info
  - for the `query` request parameter `overwrite`, default value `true` was removed
  - removed the enum value `false` from the `query` request parameter `overwrite`
  - removed the enum value `true` from the `query` request parameter `overwrite`
  - for the `query` request parameter `overwrite`, the type/format was changed from `string`/`` to `boolean`/``
  - …14 more

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/userdata/:file/move/:dest/post.md)

---

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