Panel: Error in API for create new node

Created on 6 Oct 2017  路  4Comments  路  Source: pterodactyl/panel

Hello, i have a error when try to create a new node using the api.
i set the request.
POST https://PANELURL/api/admin/nodes Authorization: Bearer SECRET Content-Type: application/x-www-form-urlencoded name=TEST&location_id=1&public=1&fqdn=test.go.cl&behind_proxy=0&scheme=http&memory=10&memory_overallocate=100&disk=100&disk_overallocate=110&daemonBase=/home/servers&daemonListen=9090&daemonSFTP=5550

but return
{"error":{"behind_proxy":["The behind proxy field is required."]}}

and this parameter has been set in the body and the Authorization.

PD: The docs for api not mention any for the parameter. https://pterodactyl.readme.io/v0.6.0/reference#create-node

bug high priority

All 4 comments

The API uses JSON, not x-www-form-urlencoded.

@DaneEveritt Test with json and same error.
imagen
and ever the same parameter with error,

Can confirm this error, my output is exactly the same when testing the API to create a node. The worst part about this is that this field isn't even mentioned, let alone documented, in the apidocs.

This will be fixed as part of 0.7's new API.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

x390 picture x390  路  4Comments

TRYTIG picture TRYTIG  路  3Comments

stijnb1234 picture stijnb1234  路  3Comments

jer3m01 picture jer3m01  路  3Comments

WeatherSquad picture WeatherSquad  路  3Comments