Template Managing via. HTTP - PocketCloudSystem/PocketCloud GitHub Wiki

Create a template

# Every key is optional except of "name"
createRequest("template/create/", "POST", [
    "name" => "TEST", "type" => "SERVER", "lobby" => false, "maintenance" => true,
    "static" => false, "maxPlayerCount" => 10, "minServerCount" => 1, "maxServerCount" => 2,
    "startNewWhenFull" => true, "autoStart" => false
]);

Remove a template

createRequest("template/remove/", "DELETE", ["name" => "TEST"]);

Edit a template

createRequest("template/edit/", "PATCH", ["name" => "TEST", "key" => "lobby", "value" => true]);

Get details about a template

createRequest("template/get/", "GET", ["name" => "TEST"]);

List all templates

createRequest("template/list/", "GET");