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.

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

Response Schema: application/json
object

Request samples

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

Response samples

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