Update cPanel account disk quota

This function modifies a user's disk quota.

Authorizations:
query Parameters
required
integer or string

The account's new quota.

  • A positive integer that represents the maximum amount of disk space, in megabytes (MB).
  • 0 or unlimited grants the account unlimited disk space.
Example: quota=500
user
required
string

The cPanel account username.

Example: user=user

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  editquota \
  user='user' \
  quota='500'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "editquota",
    • "reason": "Set quota for user.",
    • "result": 1,
    • "version": 1
    }
}