Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pterodactyl/wings/llms.txt
Use this file to discover all available pages before exploring further.
Manually triggers a synchronization of the server’s configuration with the Panel. This updates the local server state to match the Panel’s current configuration.
Authentication
Requires the Wings authentication token in the Authorization header:
Authorization: Bearer <token>
Path Parameters
Response
Returns 204 No Content on successful synchronization.
Error Responses
The requested server does not exist on this Wings instance or on the Panel.
500 Internal Server Error
An error occurred while syncing with the Panel.
Behavior
This endpoint:
- Fetches the latest server configuration from the Panel
- Updates the local configuration with Panel data
- Updates disk space limits
- Syncs environment variables and resource limits
- If server is suspended, disconnects all websocket and SFTP clients
What Gets Synced
- Server configuration (build settings, limits, allocations)
- Process configuration (startup command, environment variables)
- Container configuration (Docker image)
- Suspension status
- Resource limits (memory, CPU, disk, swap)
- Environment variables
- Crash detection settings
Automatic Disconnection
If the server is found to be suspended during sync:
- All open websocket connections are closed
- All SFTP connections are terminated
- JWTs remain valid but connections are refused
Example Request
curl -X POST https://wings.example.com/api/servers/8d3f9a2e-5c7b-4f1e-9d2a-6e8f1c3b5a7d/sync \
-H "Authorization: Bearer your-wings-token" \
-H "Accept: application/json"
Example Response
Notes
- Sync is automatically triggered before server starts
- Manual sync can be used to update configuration without restarting
- If the server no longer exists on the Panel, a 404 error is returned
- Changes to environment variables take effect on next server start
- Resource limit changes are applied to the environment immediately
- Disk limit changes are applied to the filesystem immediately
Use Cases
- Apply configuration changes made in the Panel without restarting
- Update server after allocation changes
- Refresh server state after Panel modifications
- Synchronize after updating environment variables
Source Reference
Implemented in router/router_server.go:142 and server/server.go:186