# Update cPanel account disk quota

This function modifies a user's disk quota.

Endpoint: GET /editquota
Version: 11.137.9999.106
Security: BasicAuth

## Query parameters:

  - `quota` (any, 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.
    Example: 500

  - `user` (string, required)
    The cPanel account username.
    Example: "user"

## Response 200 fields (application/json):

  - `metadata` (object)

  - `metadata.command` (string)
    The method name called.
    Example: "editquota"

  - `metadata.reason` (string)
    The reason the API function failed when the metadata.result field is 0. This field may display a success message when a function succeeds.
    Example: "Set quota for user."

  - `metadata.result` (integer)
    - 1 - Success
- 0 - Failed: Check the reason field for more details.
    Enum: 0, 1

  - `metadata.version` (integer)
    The version of the API function.
    Example: 1


