Deprecation Notice - RunCloud API Beta is deprecated effective 31 May 2019. New API will be released and it's not backward compatible.

Settings

Server details

Arguments
serverNamerequiredName of the server
serverProvideroptionalName of the company that provides your server

PATCH /servers/<server.id>/settings/meta

HTTP Request
PATCH https://manage.runcloud.io/base-api/servers/<server.id>/settings/meta
Request
curl -X PATCH "https://manage.runcloud.io/base-api/servers/yO4VAbX2BkNz/settings/meta" \
    -u YOUR_API_KEY:YOUR_API_SECRET \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    --data '{
        "serverName": "RunCloudDev",
        "serverProvider": "Custom Server Sdn. Bhd."
    }'
Response
{
	"message": "Successfully updated server details",
	"resetForm": false
}

SSH config

Arguments
passwordlessLoginrequiredSend true of false
useDnsrequiredSend true or false
preventRootLoginrequiredSend true or false

PATCH /servers/<server.id>/settings/ssh

HTTP Request
PATCH https://manage.runcloud.io/base-api/servers/<server.id>/settings/ssh
Request
curl -X PATCH "https://manage.runcloud.io/base-api/servers/yO4VAbX2BkNz/settings/ssh" \
    -u YOUR_API_KEY:YOUR_API_SECRET \
    -H "Content-Type: application/json" \
    --data '{
        "passwordlessLogin": true,
        "useDns": false,
        "preventRootLogin": true
    }'
Response
{
	"message": "Successfully updated SSH Configuration",
	"resetForm": false
}

Software update

Arguments
autoUpdaterequiredSend true or false
autoUpdateSecurityrequiredSend true or false

PATCH /servers/<server.id>/settings/autoupdate

HTTP Request
PATCH https://manage.runcloud.io/base-api/servers/<server.id>/settings/autoupdate
Request
curl -X PATCH "https://manage.runcloud.io/base-api/servers/yO4VAbX2BkNz/settings/autoupdate" \
    -u YOUR_API_KEY:YOUR_API_SECRET \
    -H "Content-Type: application/json" \
    --data '{
        "autoUpdate": false,
        "autoUpdateSecurity": true
    }'
Response
{
	"message": "Successfully updated auto update settings",
	"resetForm": false
}