.pdf)
WHM Plugins
editpkg function from within your custom script:
/xml-api/editpkg 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/editpkg
editpkg function from within your custom script:
/json-api/editpkg 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/editpkg
editpkg function takes the following variables as input.
The following variable is required: unlimited
1 — yes.
0 — no.
1 — yes.
0 — no.
1 — yes.
0 — no.
999
999
999
999
999
999
999
1 — yes.
0 — no.
unlimited
1 — yes.
0 — no.
editpkg function. 1 — yes.
0 — no.
https://example.com:2087/xml-api/editpkg?name=packagename&featurelist=Default"a=0&ip=1&cgi=1&frontpage=1&cpmod=x3&maxftp=9
&maxsql=99&maxpop=999&maxlst=999&maxsub=888&maxpark=88&maxaddon=888&hasshell=1&bwlimit=9999 in WebHost Manager will produce output similar to:
<editpkg>
<result>
<pkg>packagename</pkg>
<status>1</status>
<statusmsg>Modified the package packagename</statusmsg>
</result>
</editpkg>
https://example.com:2087/json-api/editpkg?name=packagename&featurelist=Default"a=0&ip=1&cgi=1&frontpage=1&cpmod=x3&maxftp=9
&maxsql=99&maxpop=999&maxlst=999&maxsub=888&maxpark=88&maxaddon=888&hasshell=1&bwlimit=9999 in WebHost Manager will produce output similar to:
{
"result":[
{
"status":1,
"statusmsg":"Modified the package packagename",
"changepackage":[
],
"pkg":"packagename"
}
]
}