Pterodactyl API v1
Startup

Update Variable

Updates the specified variable

PUT/api/client/servers/{server}/startup/variable

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

key*string
value*|

Response Body

application/json

curl -X PUT "https://pterodactyl.file.properties/api/client/servers/1a7ce997/startup/variable" \  -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json" \  -H "Content-Type: application/json" \  -d '{  "key": "SERVER_JARFILE",  "value": "server.jar"}'
{
  "object": "egg_variable",
  "attributes": {
    "name": "Server Jar File",
    "description": "The name of the server jarfile to run the server with.",
    "env_variable": "SERVER_JARFILE",
    "default_value": "server.jar",
    "server_value": "server.jar",
    "is_editable": true,
    "rules": "required|regex:/^([\\w\\d._-]+)(\\.jar)$/"
  }
}