Bandwidth and Disk Quotas

Update cPanel account disk quota

This function modifies a user's disk quota.

get/editquota

Request

  • Base URL
    https://whm-server.tld:2087/json-api
  • Auth
    HTTP basic

Query parameters

integer required
OR
'unlimited' required

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.
userstring required
Example:user

The cPanel account username.

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "editquota",
    "reason": "Set quota for user.",
    "result": 1,
    "version": 1
  }
}

Changes

No recorded changes to this operation across all 5 revisions of this API.