cPanel XMLAPI - changepackage


DESCRIPTION

This function changes the hosting package associated with an account.


VARIABLES

INPUT

user (string)
User name of the account to change the package for.

pkg (string)
Name of the package that the account should use.

OUTPUT

changepackage
Change Package container

result
Result of package change

rawout
Raw package change output

status (boolean)
Whether or not the upgrade was successful. Yes=1, No=0. Format: status=``0|1''

statusmsg (string)
Message as a result of the operation. Format: statusmsg=``message''


EXAMPLES

Calling this URL in WebHost Manager: /xml-api/changepackage?user=bob&pkg=gold

will produce output similar to:

<changepackage>

        <result>
        <rawout>
        
&lt;pre&gt;
Changing bwlimit to 2000 Meg
Changing Feature List to default
Changing max pop accounts from 30 to 10
Changing max sql accounts from 5 to 10
Changing max ftp accounts from 5 to 10
Changing max lists from 1 to 10
Changing max sub domains from 10 to 10
Changing max parked domains from 3 to 10
Changing max addon domains from 3 to 10
Adding Shell Access
Changing shell for szodjo.
Shell changed.
Changing cpanel module from x to x3
Changing plan from silver to gold
Resetting QUOTA....
Using Quota v3 Support
Bandwidth limit (0) is lower than (unlimited) (all limits removed)&lt;br /&gt;&lt;blockquote&gt;Enabling server.name.tld...Done&lt;br /&gt;Enabling domainname.tld...Done&lt;br /&gt;Enabling parkeddomain.tld...Done&lt;br /&gt;&lt;/blockquote&gt;&lt;span class=&quot;b2&quot;&gt;Warning, this will not cause ip-less accounts to become ip access, or the reverse.&lt;/span&gt;

</rawout>

<status>1</status>

<statusmsg>Account Upgrade/Downgrade Complete for bob</statusmsg>

</result>

</changepackage>


COPYRIGHT

Copyright 2007 cPanel Inc.