Description

This function modifies a user's disk quota.

Examples 


https://hostname.example.com:2087/cpsess##########/json-api/editquota?api.version=1&user=user&quota=500
https://hostname.example.com:2087/cpsess##########/xml-api/editquota?api.version=1&user=user&quota=500
whmapi1 editquota user=user quota=500

{  
   "metadata":{  
      "version":1,
      "reason":"Set quota for user.",
      "output":{  
         "raw":"Using Universal Quota Support (quota=512000)\n"
      },
      "result":1,
      "command":"editquota"
   }
}
<result>
    <metadata>
        <version>1</version>
        <reason>Set quota for user.</reason>
        <output>
            <raw>Using Universal Quota Support (quota=512000)</raw>
        </output>
        <result>1</result>
        <command>editquota</command>
    </metadata>
</result>

   

Parameters

ParameterTypeDescriptionPossible valuesExample
userstring

Required

The cPanel account username.

A valid cPanel username on the server.user
quotastring

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.
500

Returns

This function only returns metadata.