Add IP addresses to reseller

This function adds IP addresses to a reseller's account.

Note:

To assign a main IP address to a reseller's account, call the WHM API 1 setresellermainip function.

For more information, read our Manage Reseller's IP Delegation documentation.

SecurityBasicAuth
Request
query Parameters
user
required
string <username>

The reseller's username.

Example: user=username
delegate
integer
Default: 0

Whether to allocate the reseller a dedicated IP address.

  • 1 — Restrict the reseller's account to its dedicated IP address.
  • 0 — Allow the user to dedicate any available IP address to an owned account.
Value: 1
Example: delegate=1
ips
string <ipv4>

The IP addresses to allocate to the reseller's account.

Note:

  • If you do not use this parameter, the function clears the reseller's IP address list.
  • Use a comma-separated list to allocate multiple IP addresses.
Example: ips=192.168.0.20
Responses
200

HTTP Request was successful.

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