File Manager
Compress file
Compresses the specified file
POST
/api/client/servers/{server}/files/compressAuthorization
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
files*array<>
Response Body
application/json
curl -X POST "https://pterodactyl.file.properties/api/client/servers/1a7ce997/files/compress" \ -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -d '{ "root": "/", "files": [ "abc" ]}'{
"object": "file_object",
"attributes": {
"name": "archive-2020-08-23T220805Z.tar.gz",
"mode": "-rw-------",
"mode_bits": "644",
"size": 0,
"is_file": true,
"is_symlink": false,
"mimetype": "application/tar+gzip",
"created_at": "2020-08-23T22:08:05+00:00",
"modified_at": "2020-08-23T22:08:05+00:00"
}
}