changepackage function from within your custom script:
/xml-api/changepackage function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/xml-api/changepackage
changepackage function from within your custom script:
/json-api/changepackage function call name, plus the required variables (see below), to a URL which includes the address of your server.
example.com, you would include the following string in your script: https://example.com:2087/json-api/changepackage
changepackage function takes the following required variables as input: changepackage function. changepackage function.
1 — yes.
0 — no.
https://example.com:2087/xml-api/changepackage?user=bob&pkg=gold in WebHost Manager will produce output similar to:
<changepackage>
<result>
<rawout>
Changing bwlimit to unlimited Meg
Changing Feature List to default
Changing max pop accounts from unlimited to unlimited
Changing max sql accounts from unlimited to 10
Changing max ftp accounts from unlimited to 10
Changing max lists from 10 to 5
Changing max sub domains from unlimited to 10
Changing language from english to english
Changing max parked domains from 9999 to 0
Changing max addon domains from 9999 to 0
Adding Shell Access
Shell already set to /bin/bash
Changing cpanel module from x3 to x
Changing plan from Limit One to level3
Resetting QUOTA....
Using Quota v3 Support
Bandwidth limit (0) is lower than (unlimited) (all limits removed)
Enabling......asdfasdf.com...Done
Warning, this will not cause ip-less accounts to become ip access,
or the reverse.
</rawout>
<status>1</status>
<statusmsg>Account Upgrade/Downgrade Complete for asdfasdf</statusmsg>
</result>
</changepackage>
https://example.com:2087/json-api/changepackage?user=bob&pkg=gold in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Account Upgrade/Downgrade Complete for bob",
"rawout":"<pre>\nChanging bwlimit to unlimited Meg\nChanging Feature List to
default\nChanging max pop accounts from 3 to unlimited\nChanging max sql accounts
from 6 to unlimited\nChanging max ftp accounts from 0 to unlimited\nChanging max
lists from unlimited to unlimited\nChanging max sub domains from 3 to unlimited
\nChanging language from english to english\nChanging max parked domains
from 4 to 2\nChanging max addon domains from 5 to 2\nAdding Shell Access
\nChanging shell for bob.\nShell changed.\nChanging cpanel module from x3 to
x3\nChanging plan from level3 to gold\nResetting QUOTA....\nUsing Quota v3
Support\nBandwidth limit (0) is lower than (unlimited) (all limits removed)<br />
<blockquote><div style='float:left;'>Enabling...</div><div style='float:left;'>
...example.com...</div><div style='float:left;'>Done</div>
</blockquote><br /><div class='clearit' style='clear:both; width:80%;'> </div>
<span class=\"b2\">Warning, this will not cause ip-less accounts to become ip
access, or the reverse.</span>\n"
}
]
}
Copyright © cPanel 2000-2009.