.pdf)
WHM Plugins
editquota function from within your custom script:
/xml-api/editquota 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/editquota
editquota function from within your custom script:
/json-api/editquota 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/editquota
editquota function takes the following variables as input. Both of these variables are required: user
500
editquota function. editquota request. 1 — success.
0 — failure.
https://example.com:2087/xml-api/editquota?user=john"a=50
will produce output similar to the following:
<editquota>
<output>Using Quota v3 Support</output>
<result>
<status>1</status>
<statusmsg>Set quota for user.</statusmsg>
</result>
</editquota>
https://example.com:2087/json-api/editquota?user=john"a=50
will produce output similar to the following:
{
"result":[
{
"status":1,
"statusmsg":"Set quota for user."
}
],
"output":"Using Quota v3 Support\n"
}