Servers
Switch auto-renew
With auto-renew on, the server renews for one month from the balance before it expires.
PATCH
/servers/{id}/auto-renewAuthorization
AuthorizationheaderrequiredBearer rv_…, a key with the renew scope. About keys
Path parameters
idstring (uuid)requiredThe server id from List servers.
Body
application/json
enabledbooleanrequiredOn or off.
Response
idstring (uuid)The server id.
hostnamestring | nullThe name you gave it.
ip_addressstring | nullPublic IPv4 address, null while it’s being created.
statusstringprovisioning, reinstalling, moving, running, stopped, suspended, expired or deleted.
distro_namestring | nullOperating system, e.g. Windows Server 2022.
plan_idintegerThe plan, see List plans.
region_idintegerThe location, see List locations.
distro_idintegerThe operating system, see List operating systems.
sell_pricestring (decimal)Monthly price in USD.
duration_monthsintegerThe term it was ordered for.
expiry_datestring (datetime) | nullPaid until.
auto_renewbooleanRenews from the balance before it expires.
created_atstring (datetime)When it was ordered.
suspended_atstring (datetime) | nullSet while the server is suspended.
suspend_reasonstring | nullWhy, when it is.
Status codes
200Success.
401No key, a wrong key, or a revoked or expired one.
429More than 120 requests a minute with one key, or too many wrong keys from one address.