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.

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

HTTP Request was successful.

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