> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chowder.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Move File

> Move or rename a file or directory on the instance.

Moves (or renames) a file or directory from one path to another on the instance. Works like `mv` — you can use it to rename files in place or move them to a different directory.

## Authentication

Requires an **org-level API key** or a **scoped token** with the appropriate permission.

## Path Parameters

<ParamField path="instance_id" type="string" required>
  The ID of the instance.
</ParamField>

## Body Parameters

<ParamField body="source" type="string" required>
  The current path of the file or directory, relative to the instance root.
</ParamField>

<ParamField body="destination" type="string" required>
  The new path for the file or directory, relative to the instance root.
</ParamField>

## Response

Returns `204 No Content` on success.

<RequestExample>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
  curl -X POST https://api.chowder.dev/v1/instances/ins_abc123/files/move \
    -H "Authorization: Bearer YOUR_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
      "source": "config/old-name.json",
      "destination": "config/new-name.json"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```text 204 theme={"theme":{"light":"github-light","dark":"github-dark-dimmed"}}
  No Content
  ```
</ResponseExample>
