Server Config

Base: /api/config

Read and modify server configuration

Handler: ConfigHandler
GET /api/config

Read Configuration

Returns the current server configuration.

Response Example

{"max_players":50,"difficulty":"normal","pvp":true,"spawn_protection":16,"view_distance":10,"motd":"§aEin Hytale Server"}

cURL

curl http://localhost:5550/api/config
POST /api/config/set

Change Configuration

Changes configuration values. Some changes require a restart.

Request Body

Field Type Required Description
key string Yes Configuration key
value mixed Yes New value

Response Example

{"success":true,"message":"Config max_players set to 100","requires_restart":false}

cURL

curl -X POST http://localhost:5550/api/config/set \
  -H 'Content-Type: application/json' \
  -d '{"key":"max_players","value":100}'
Some configuration changes (e.g. max_players, view_distance) require a server restart to take effect.