server.hostname

Using this method you can update the hostname for a server.

Examples

Setting a Hostname

Similarly to retrieving a server's hostname, but include the optional parameter hostname to set it.

Try it Out
{
    "cuid": "S1",
    "hostname": "example.foobar.com"
}
{
    "code": 6000,
    "message": "Server \"S1\" was not found."
}

Parameters

Name Type Default
cuid cuid[Server] Required

Identifier for the server you are querying. (Example: "S1")

hostname string Required

New hostname to set for the server

Errors

Code Name
6000 ServerNotFound
6001 ServerMustBeActive
0 ServerInvalidHostname