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

# Move or rename a file

> Move or rename a file

### Path parameters

<ParamField path="id" type="string (uuid)" required>
  Sandbox identifier
</ParamField>

### Request body

JSON body of type `MoveFileRequest`.

### Response

`object`

<ResponseField name="success" type="boolean" required />

<ResponseField name="source" type="string" required />

<ResponseField name="destination" type="string" required />

### Status codes

| Code  | Meaning           |
| ----- | ----------------- |
| `200` | File moved        |
| `404` | Sandbox not found |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/move' \
    --header "Authorization: Bearer $STATESET_SANDBOX_API_KEY" \
    --header 'Content-Type: application/json' \
    --data '{}'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "source": "string",
    "destination": "string"
  }
  ```
</ResponseExample>
