Pterodactyl API v1
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-image

Authorization

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

docker_image*string

Response Body

curl -X PUT "https://pterodactyl.file.properties/api/client/servers/1a7ce997/settings/docker-image" \  -H "Authorization: Bearer ptlc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \  -H "Accept: application/json" \  -H "Content-Type: application/json" \  -d '{  "docker_image": "ghcr.io/pterodactyl/yolks:java_21"}'
Empty