Update domain or cPanel account IP address

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

SecurityBasicAuth
Request
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
200

HTTP Request was successful.

Response Schema: application/json
object
get/setsiteip
Request samples
whmapi1 --output=jsonpretty \
  setsiteip \
  ip='192.168.4.10'
Response samples
application/json
{
  • "metadata": {
    • "command": "setsiteip",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}