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

# Move Application File or Folder

> Moves a file or folder within an application to a new location by its ID.

<ParamField path="id" type="string" required>
  The ID of the application to move the file or folder within. If the application belongs to a workspace, include the workspace\_id in the format `appId-workspace_id`.
</ParamField>

<ParamField query="path" type="string" required>
  The source path of the file or folder to move.
</ParamField>

<ParamField query="to" type="string" required>
  The destination path to move the file or folder to.
</ParamField>

### Response

<ResponseExample>
  ```json Response theme={null}
  {}
  ```
</ResponseExample>

### Error Responses

<ResponseField name="code" type="string">
  The error code indicating the reason for failure. Possible values:

  * `UNAUTHORIZED`: The user is not authenticated or lacks sufficient permissions.
  * `FORBIDDEN`: The user does not have permission to access the application.
  * `APP_NOT_FOUND`: The specified application does not exist.
  * `PLAN_RESTRICTED_FEATURE`: The user's plan does not support file manager access.
  * `MISSING_PATH_OR_DESTINATION`: The path or destination query parameter was not provided.
  * `FORBIDDEN_PATH`: The specified source path is restricted.
  * `FILE_MOVE_FAILED`: Failed to move the file or folder.
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message providing additional details about the error.
</ResponseField>

<ResponseExample>
  ```json Error Response (403) theme={null}
  {
    "code": "UNAUTHORIZED"
  }
  ```

  ```json Error Response (404) theme={null}
  {
    "code": "APP_NOT_FOUND"
  }
  ```

  ```json Error Response (400) theme={null}
  {
    "code": "MISSING_PATH_OR_DESTINATION",
    "message": "Both 'path' and 'to' query parameters are required"
  }
  ```
</ResponseExample>
