Update domain or cPanel account IP address

This function changes a site's or account's IP address.

Authorizations:
query Parameters
ip
required
string <ipv4>

The site's or user's IPv4 address.

Example: ip=192.168.4.10
domain
string <domain>

The domain's name.

Note:

You must use either the user parameter or domain parameter.

Example: domain=example.com
user
string <username>

The user's username.

Note:

You must use either the user parameter or domain parameter.

Example: user=username

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  setsiteip \
  ip='192.168.4.10'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "setsiteip",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}