Description
This function modifies an email account's disk quota.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Email::edit_pop_quota
— This function changes an email address's quota.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The email account's domain. |
A valid domain on the cPanel account. For example, example.com to modify the quota for user@example.com. |
example.com |
|
string |
Required The email account's name. |
A valid email account name. For example, user to modify the quota for user@example.com |
user |
quota |
integer |
Required The maximum amount of disk space that the email account may use. |
A positive integer. Note: To grant unlimited disk space, specify 0. |
500 |
Returns
Return |
Type |
Description |
Possible values |
Example |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |