Client server settings
Update Docker image
Changes the Docker image the server runs with. The image must be one of the images allowed by the server's egg. Returns 400 if the image was manually set by an admin.
PUT
/api/client/servers/{server}/settings/docker-imageAuthorization
ClientToken AuthorizationBearer <token>
Client API key (generated at /account/api)
In: header
Path Parameters
server*string
Server identifier (short 8-character ID)
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X PUT "https://example.com/api/client/servers/1a7ce997/settings/docker-image" \ -H "Content-Type: application/json" \ -d '{ "docker_image": "ghcr.io/pterodactyl/yolks:java_21" }'Empty