Update reseller's main IP address

This function assigns a main IP address to a reseller's account.

Note:

To assign additional IP addresses to a reseller's account, call the WHM API 1 setresellerips function.

Authorizations:
query Parameters
ip
required
string <ipv4>

The IP address to assign to the reseller's account as the main shared IP address.

Example: ip=192.168.0.20
user
required
string

The reseller's username.

Example: user=username

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  setresellermainip \
  user='username' \
  ip='192.168.0.20'

Response samples

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