Actions36
- Location Actions
- Nest Actions
- Node Actions
- Server Actions
- User Actions
Server → Update Startup
AI-generatedSummary
Update the startup configuration of a specified server including its egg (server type), Docker image, startup command, and environment variables.
Inputs
- Server (required) — Select the server to update by its ID.
- Egg — Optionally change the server's egg (type). Leave empty to keep the current egg.
- Docker Image — Optionally specify the Docker image for the server from the selected egg. Leave empty to keep the current image.
- Startup Command Preview — Read-only preview showing the current server startup command or the default from a newly selected egg. Cannot be edited directly.
- Override Startup Command — Override the startup command with a custom string. Leave empty to keep the current or new egg default. Supports Pterodactyl variables directly (e.g., {{SERVER_MEMORY}}).
- Environment Variables — Set key/value pairs to override or add to the server's environment variables. Current environment variables are preserved unless overridden here.
- Environment Variables (JSON) — Provide environment variables as a JSON object string. This overrides both current values and the UI key-value pairs. Supports dynamic expressions from previous nodes (e.g., {{ $json.envVars }}).
Output shape
a single JSON object representing the updated server startup configuration and environment variables as returned by the Pterodactyl Application API
The update merges or replaces environment variables depending on if JSON input is used. Omitting optional fields leaves them unchanged. Errors are returned if the server ID is invalid or API calls fail.
Examples
Example 1: Update a server's startup configuration by selecting the server, optionally changing its egg and docker image, and overriding the startup command and environment variables to customize server launch behavior.
Specify server ID, optionally select a new egg and docker image, review startup command preview, optionally override startup command, provide environment variables via UI or JSON input.