Update cPanel account disk quota

This function modifies a user's disk quota.

SecurityBasicAuth
Request
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
200

HTTP Request was successful.

Response Schema: application/json
object
get/editquota
Request samples
whmapi1 --output=jsonpretty \
  editquota \
  user='user' \
  quota='500'
Response samples
application/json
{
  • "metadata": {
    • "command": "editquota",
    • "reason": "Set quota for user.",
    • "result": 1,
    • "version": 1
    }
}