K
KulM
Guest
I am trying to change the limits of a client account and am seeing strange results. I have written a program to change all the limits for an account... everything works fine except when I try and set the disk_space, max_traffic, and mbox_quota get set to 0 even though I have other values specified. Here is a look at the request XML:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version=\"1.3.2.4\">
<client>
<set>
<filter>
<id>29</id>
</filter>
<values>
<limits>
<max_webapps>5</max_webapps>
<max_maillists>0</max_maillists>
<max_resp>5</max_resp>
<max_mg>5</max_mg>
<max_redir>5</max_redir>
<mbox_quota>5000</mbox_quota>
<max_box>20</max_box>
<max_db>1</max_db>
<max_wu>0</max_wu>
<max_traffic>20000</max_traffic>
<disk_space>1500</disk_space>
<max_subdom>2</max_subdom>
<max_dom>1</max_dom>
</limits>
</values>
</set>
</client>
</packet>
and here is the response XML:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.3.2.4">
<client>
<set>
<result>
<status>ok</status>
<id>29</id>
</result>
</set>
</client>
</packet>
I have tried changing the values of disk_space to multiple formats and numbers without success. Also, I have tried setting ONLY the disk_space and it doesn't work either, just sets it to 0.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version=\"1.3.2.4\">
<client>
<set>
<filter>
<id>29</id>
</filter>
<values>
<limits>
<max_webapps>5</max_webapps>
<max_maillists>0</max_maillists>
<max_resp>5</max_resp>
<max_mg>5</max_mg>
<max_redir>5</max_redir>
<mbox_quota>5000</mbox_quota>
<max_box>20</max_box>
<max_db>1</max_db>
<max_wu>0</max_wu>
<max_traffic>20000</max_traffic>
<disk_space>1500</disk_space>
<max_subdom>2</max_subdom>
<max_dom>1</max_dom>
</limits>
</values>
</set>
</client>
</packet>
and here is the response XML:
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.3.2.4">
<client>
<set>
<result>
<status>ok</status>
<id>29</id>
</result>
</set>
</client>
</packet>
I have tried changing the values of disk_space to multiple formats and numbers without success. Also, I have tried setting ONLY the disk_space and it doesn't work either, just sets it to 0.