Pterodactyl API v1
File Manager

Rename file

Renames the specified file(s) or folder(s)

PUT/api/client/servers/{server}/files/rename

Authorization

ClientToken
AuthorizationBearer <token>

Client API key (generated at /account/api)

In: header

Path Parameters

server*string

Server identifier (short 8-character ID)

Request Body

application/json

root*string

Directory the paths are relative to

files*array<>

Response Body

curl -X PUT "https://pterodactyl.file.properties/api/client/servers/1a7ce997/files/rename" \  -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json" \  -H "Content-Type: application/json" \  -d '{  "root": "/",  "files": [    {      "from": "data",      "to": "abc"    }  ]}'
Empty