Enable cPanel account's reseller status

This function grants reseller status to an account.

Note:

This function grants reseller status to an existing account. You cannot create a new account with this function.

SecurityBasicAuth
Request
query Parameters
user
required
string <username>

The account's username.

Example: user=username
makeowner
integer
Default: 0

Whether to set the account to own itself.

  • 1 — Make the account own itself.
  • 0 — Keep the account's current owner.
Enum: 0 1
Example: makeowner=0
Responses
200

HTTP Request was successful.

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