This function gives reseller status to an account.
- user
-
Name of the user to give reseller status to.
- makeowner
-
Whether or not to make the reseller own their own account (they will be able to modify their account if they own it). Yes=1, No=0.
- setupreseller
-
Reseller setup container
- result
-
Results container
- status (boolean)
-
Whether or not the operation succeeded. Yes=1, No=0.
- statusmsg (string)
-
Any message related to the result of the operation. Format statusmsg=``message''
Calling this URL in WebHost Manager:
/xml-api/setupreseller?user=bob&makeowner=1
will produce XML similar to:
<setupreseller>
<result status=``1'' statusmsg=``''/>
</setupreseller>
Note that the user must exist to be made a reseller, this will not create an account.
Copyright 2007 cPanel Inc.