Update reseller's assigned nameservers

This function assigns nameservers to a reseller's account.

SecurityBasicAuth
Request
query Parameters
user
required
string <username>

The reseller's username.

Example: user=username
nameservers
string

A comma-separated list of the nameserver domains to assign to the reseller's account.

Note:

If you do not use this parameter, the function resets the reseller's nameservers to use the server default.

Examples:
nameservers=ns1.example.com,ns2.example.com
nameservers=ns1.example.com
Responses
200

HTTP Request was successful.

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