Documentation Index
Fetch the complete documentation index at: https://mintlify.com/iFamishedX/HungerLib/llms.txt
Use this file to discover all available pages before exploring further.
StartupAPI exposes Pterodactyl’s startup variable endpoints. It is available as panel.startup on every Panel instance and allows you to read and modify the environment variables that are injected into a server’s startup command — for example, the server version, maximum players, or any other egg-defined variable.
Changes made via update() take effect the next time the server starts. All methods accept server_id as their first argument and return a raw requests.Response.
list
Returns all startup variables defined for the server, along with their current values and validation rules.
Endpoint: GET /api/client/servers/{server_id}/startup
The short identifier of the target server (e.g.
"abc123").requests.Response — JSON body contains a data array of variable objects. Each variable includes name, description, env_variable, default_value, server_value, is_editable, and rules (a pipe-separated Laravel validation string).
update
Updates the value of a single startup variable by its environment variable key.
Endpoint: POST /api/client/servers/{server_id}/startup/variable
The short identifier of the target server.
The environment variable name to update (e.g.
"SERVER_JARFILE", "MAX_PLAYERS"). This must match the env_variable field returned by list().The new value to assign to the variable. Pterodactyl validates this against the variable’s
rules before accepting it.requests.Response — JSON body contains the updated variable object reflecting the new server_value.