update_egg_variable
Modify environment variables for Pterodactyl server eggs by updating display names, values, permissions, or validation rules using the variable ID.
Instructions
Update an existing environment variable on an egg (admin action). All fields are optional - only provided fields will be changed. Use list_egg_variables to find the variable_id. Requires Application API key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nest_id | Yes | Nest ID that contains the egg (from list_nests) | |
| egg_id | Yes | Egg ID that contains the variable (from list_eggs) | |
| variable_id | Yes | Variable ID to update (from list_egg_variables) | |
| name | No | New display name for the variable | |
| description | No | New description | |
| env_variable | No | New environment variable key | |
| default_value | No | New default value | |
| user_viewable | No | Whether users can see this variable | |
| user_editable | No | Whether users can modify this variable | |
| rules | No | New Laravel validation rules |