Control Web Panel

Developers => CWP API => Topic started by: matric on January 02, 2021, 10:53:22 PM

Title: Account API returning zero for diskused
Post by: matric on January 02, 2021, 10:53:22 PM
Hi Everyone,

First time poster and pretty new to CWP - thanks for creating such a great product!

I am having a problem with my integration with WHMCS that I was hoping someone might be able to point me in the right direction to a solution.

Problem:
Disk Usage is being reported as zero (0) for all accounts - other values, such as bandwidth, bandwidth limit and disk limit are returned OK.

Example:
UserA is showing the correct amount, 153.2MB used disk space in the admin and user control panels (web interface) but shows as zero when using the API via curl - "diskused":0,"disklimit":"2048","bandwidth":"13","bwlimit":"100000"

I am using CWPpro version: 0.9.8.1030
Title: Re: Account API returning zero for diskused
Post by: pRieStaKos on October 04, 2022, 04:25:43 PM
@matric Did you got an answer ?
Title: Re: Account API returning zero for diskused
Post by: josemnunez on October 04, 2022, 11:32:05 PM
You must have the s quotas installed and configured on your server for the api to return this value


Title: Re: Account API returning zero for diskused
Post by: pRieStaKos on October 05, 2022, 05:26:39 PM
You must have the s quotas installed and configured on your server for the api to return this value

Any guide for this ? What is "s quotas" ?

Quota is already configured. https://ibb.co/L6SYNhk