I am trying to create a server through the API. Here is what i have tried but it doesnt seem to work.
Request:
curl --location 'https://panel.guardiancloud.xyz/api/application/servers' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {REDACTED}' \
--data '{
"name": "Building",
"user": 1,
"egg": 1,
"docker_image": "quay.io/pterodactyl/core:java",
"startup": "java -Xms128M -Xmx128M -jar server.jar",
"environment": {
"BUNGEE_VERSION": "latest",
"SERVER_JARFILE": "server.jar"
},
"limits": {
"memory": 128,
"swap": 0,
"disk": 512,
"io": 500,
"cpu": 100
},
"feature_limits": {
"databases": 5,
"backups": 1
},
"allocation": {
"default": 17
}
}'
Response:
{
"errors": [
{
"code": "ValidationException",
"status": "422",
"detail": "The selected allocation.default is invalid.",
"meta": {
"source_field": "allocation.default",
"rule": "exists"
}
}
]
}
I have enough allocations, and resources