Update reseller's assigned nameservers

This function assigns nameservers to a reseller's account.

Authorizations:
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

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  setresellernameservers \
  user='username'

Response samples

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