Set User Credit Quota
Updated at:2025-11-03
API description
This API is used to set the user's quota, which includes the total number of buckets and the total storage capacity of each region. Currently, the maximum total number of buckets cannot exceed 100. Note that this API can only be called by the primary user.
Request URI
PUT /v1/?userQuota
Parameters of request body
Description of the data structure of request body fields
| Parameter name | Parameter type | Required or not | Description | Example value |
|---|---|---|---|---|
| maxBucketCount | Long | Yes | Maximum number of buckets that can be created. A value of -1 means no setting | 50 |
| maxCapacityMegaBytes | Long | Yes | Maximum storage capacity in MB. A value of -1 or 0 means no setting for storage capacity quota limit, namely no upper limit | 12334424 |
Response body parameters
None
Request example
JSON
1PUT /v1/?userQuota
2 <Common request headers>
3{
4 "maxBucketCount" : 50,
5 "maxCapacityMegaBytes" : 12334424
6}
Response example
None
Error code
Please refer to the general error codes
