Updated on 2026-11-20 GMT+08:00

Updating the Rate Limit Quota

Function

Updates the rate limit quota information of a tenant. Batch upsert operations are supported.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    workspace:sitesBandwidth:update

    Write

    -

    -

    -

    -

URI

PUT /v2/{project_id}/sites/bandwidth-quota/configurations

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

speed_limit_quotas

Yes

Array of SpeedLimitQuotaItem objects

Rate limit quota list.

Table 3 SpeedLimitQuotaItem

Parameter

Mandatory

Type

Description

id

No

String

Quota record ID.

site_id

Yes

String

Site ID.

site_name

No

String

Site name.

upload_speed_limit

Yes

Long

Upload rate limit (Mbit/s).

download_speed_limit

Yes

Long

Download rate limit (Mbit/s).

enabled

Yes

Boolean

Whether rate limiting is enabled.

create_time

No

String

Creation time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z.

update_time

No

String

Update time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

speed_limit_quotas

Array of SpeedLimitQuotaItem objects

Rate limit quota list.

Table 5 SpeedLimitQuotaItem

Parameter

Type

Description

id

String

Quota record ID.

site_id

String

Site ID.

site_name

String

Site name.

upload_speed_limit

Long

Upload rate limit (Mbit/s).

download_speed_limit

Long

Download rate limit (Mbit/s).

enabled

Boolean

Whether rate limiting is enabled.

create_time

String

Creation time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z.

update_time

String

Update time (UTC). The format is RFC 3339, for example, 2024-01-01T00:00:00Z.

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Status code: 401

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Status code: 403

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Status code: 500

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

error_detail

String

Error details.

encoded_authorization_message

String

Encrypted detailed reason for rejection. You can call the API decode-authorization-message of STS to decrypt the reason.

Example Requests

PUT /v2/fb2e5ec048384c8f9469d22db0037908/sites/bandwidth-quota/configurations

{
  "speed_limit_quotas" : [ {
    "site_id" : "147258369",
    "upload_speed_limit" : 20,
    "download_speed_limit" : 50,
    "enabled" : true
  } ]
}

Example Responses

Status code: 200

{
  "speed_limit_quotas" : [ {
    "id" : "550e8400-e29b-41d4-a716-446655440000",
    "site_id" : "147258369",
    "upload_speed_limit" : 20,
    "download_speed_limit" : 50,
    "enabled" : true,
    "create_time" : "2026-06-06T12:00:00Z",
    "update_time" : "2026-06-06T12:00:00Z"
  } ]
}

Status Codes

Status Code

Description

200

Response to the request for updating the rate limit quota.

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error. For details, see the error code description.

Error Codes

See Error Codes.