Authentication
This endpoint requires admin authentication and the servers:write permission.
Path Parameters
Request Body
CPU limit percentage (minimum: 0)
Memory limit in MB (minimum: 0)
Swap space in MB (minimum: -1, -1 = unlimited)
Disk space in MB (minimum: 0)
Block I/O weight (10-1000)
CPU thread pinning (e.g., “0-3,8”)
Database limit (null = unlimited)
Additional allocation limit (null = unlimited)
Backup limit (null = unlimited)
Response
Whether the update was successful
curl -X PATCH "https://panel.example.com/api/admin/servers/a1b2c3d4" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{
"memory": 4096,
"cpu": 200,
"disk": 20480,
"databaseLimit": 2,
"backupLimit": 5
}'
{
"data": {
"success": true,
"message": "Build configuration updated successfully"
}
}
Notes
- Updates are applied to the database immediately
- The server configuration is synchronized with Wings after database update
- If Wings sync fails, an error is returned but database changes persist
- Changes will be applied on next server restart if sync fails
- Only provided fields are updated; omitted fields remain unchanged