Description


This function grants reseller status to an account.


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


Examples 




https://hostname.example.com:2087/cpsess##########/json-api/setupreseller?api.version=1&user=username&makeowner=0




https://hostname.example.com:2087/cpsess##########/xml-api/setupreseller?api.version=1&user=username&makeowner=0




whmapi1 setupreseller user=username makeowner=0



{  
   "metadata":{  
      "version":1,
      "reason":"OK",
      "command":"setupreseller",
      "result":1
   }
}




<result>
    <metadata>
        <version>1</version>
        <result>1</result>
        <command>setupreseller</command>
        <reason>OK</reason>
    </metadata>
</result>



   

Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The account's username.

A valid username on the server.username
makeownerBoolean

Whether to set the account to own itself.

This parameter defaults to 0.

  • 1 — Make the account own itself.
  • 0 — Keep the account's current owner.
0

Returns

This function only returns metadata.