File Manager
Copy file
Copies the specified file
POST
/api/client/servers/{server}/files/copyAuthorization
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
location*string
Path of the file to copy, relative to the server root. The copy is created in the same directory.
Response Body
curl -X POST "https://pterodactyl.file.properties/api/client/servers/1a7ce997/files/copy" \ -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "location": "/server.properties"}'Empty