Rename or move a file
files_renameRename or move files and directories on a Pterodactyl server using root-relative paths, including batch renames in one request.
Instructions
Rename or move a file/directory within the server. Paths are relative to root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Single rename: new name. Or use files. | |
| from | No | Single rename: current name. Or use files. | |
| root | No | Directory the paths are relative to (default /). | |
| files | No | Several renames at once, names relative to root. | |
| panel | No | Name of a saved panel. Omit to use the active or default panel. | |
| server | Yes | ||
| baseUrl | No | Inline panel URL override, e.g. https://panel.example.com. Not persisted. | |
| clientKey | No | Inline client API key (ptlc_…) override. Not persisted. | |
| applicationKey | No | Inline application API key (ptla_…) override. Not persisted. |