modifyacct function from within your custom script:
/xml-api/modifyacct 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/modifyacct
modifyacct function from within your custom script:
/json-api/modifyacct 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/modifyacct
modifyacct function takes the following required variable as input: user
modifyacct function takes the following optional variables as input: domain.tld
x3
1 — yes.
0 — no.
spanish-utf8
en 0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
1 — yes.
0 — no.
modifyacct function. 0 is unlimited.
unlimited
null
y — yes.
n — no.
spanish-utf8
en
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
0 is unlimited.
unlimited
null
https://example.com:2087/xml-api/modifyacct?user=user&domain=domain.com&HASCGI=0&CPTHEME=x3
&LANG=english&MAXPOP=3&MAXFTP=0&MAXLST=1&MAXSUB=3&MAXPARK=4&MAXADDON=5&MAXSQL=6&shell=1
will produce output similar to the following:
<modifyacct>
<result>
<messages>Changing shell for user.
Shell changed.</messages>
<newcfg>
<cpuser>
<BWLIMIT>5242880000</BWLIMIT>
<CONTACTEMAIL>owner@domain.com</CONTACTEMAIL>
<CONTACTEMAIL2></CONTACTEMAIL2>
<DEADDOMAINS>oldsub.domain.com</DEADDOMAINS>
<DEMO>0</DEMO>
<DOMAIN>domain.com</DOMAIN>
<DOMAINS>sub.domain.com</DOMAINS>
<DOMAINS>addondomain.com</DOMAINS>
<FEATURELIST>reseller_gold</FEATURELIST>
<HASCGI>0</HASCGI>
<IP>208.77.188.166</IP>
<LANG>english</LANG>
<LOCALE>en</LOCALE>
<MAXADDON>5</MAXADDON>
<MAXFTP>0</MAXFTP>
<MAXLST>1</MAXLST>
<MAXPARK>4</MAXPARK>
<MAXPOP>3</MAXPOP>
<MAXSQL>6</MAXSQL>
<MAXSUB>3</MAXSUB>
<OWNER>root</OWNER>
<PLAN>reseller_gold</PLAN>
<RS>x3</RS>
<STARTDATE>1175808157</STARTDATE>
<USER>user</USER>
</cpuser>
<domain>domain.com</domain>
<setshell>/bin/bash</setshell>
<user>user</user>
</newcfg>
<status>1</status>
<statusmsg>Account Modified</statusmsg>
</result>
</modifyacct>
https://example.com:2087/json-api/modifyacct?user=gus&domain=example.com&HASCGI=0&CPTHEME=x3
&LANG=english&MAXPOP=3&MAXFTP=0&MAXLST=1&MAXSUB=3&MAXPARK=4&MAXADDON=5&MAXSQL=6&shell=1
will produce output similar to the following:
{
"result":[
{
"newcfg":{
"setshell":"/bin/bash",
"domain":"example.com",
"user":"gus",
"cpuser":{
"DEADDOMAINS":[
],
"IP":"127.0.0.1",
"MAXSUB":"3",
"DOMAIN":"example.com",
"CONTACTEMAIL":"",
"MAXSQL":"6",
"MAXFTP":"0",
"LOCALE":"en",
"HASCGI":0,
"CONTACTEMAIL2":"",
"DEMO":"0",
"USER":"gus",
"FEATURELIST":"default",
"BWLIMIT":"5242880",
"DOMAINS":[
],
"STARTDATE":"1242737345",
"OWNER":"gus",
"MAXPARK":"4",
"RS":"x3",
"PLAN":"level3 ",
"MAXADDON":"5",
"MAXPOP":"3",
"MAXLST":"1",
"LANG":"english"
}
},
"status":1,
"statusmsg":"Account Modified",
"warnings":[
],
"messages":[
"Changing shell for gus.\nShell changed.\n"
]
}
]
}
Copyright © cPanel 2000-2009.