Pterodactyl API v1
File Manager

Change file permissions

Updates file permissions for one or more files in the given directory

POST/api/client/servers/{server}/files/chmod

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*|
files*array<>

Response Body

curl -X POST "https://pterodactyl.file.properties/api/client/servers/1a7ce997/files/chmod" \  -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json" \  -H "Content-Type: application/json" \  -d '{  "root": "/",  "files": [    {      "file": "server.properties",      "mode": 644    }  ]}'
Empty