HTTP Global Settingsupdate zone http bwlimit setting

update zone http bwlimit setting

update zone http bwlimit setting

curl -X POST "https://api.5centscdn.com/v2/zones/http/settings/security/bwlimit" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "enabled": "Y",
  "policy": "0",
  "rate": 1024,
  "rateafter": 10240,
  "mode": "save"
}'
{
  "result": "success",
  "message": "Zone Settings Updated"
}
POST
/zones/http/settings/security/bwlimit
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
enabledstring

Enable or disable bandwidth limiting globally for HTTP zones. Y means enabled, N means disabled.

Options: Y, N
policystring

Rate limiting mode. "0" = Static mode (fixed rate applied from the start of the transfer). "1" = Dynamic mode (rate limiting activates only after rateafter bytes have been served).

Options: 0, 1
ratenumber

Rate limit in Kbps.

rateafternumber

KB served before limiting kicks in.

modestring

Controls how the settings are applied to zones. save — only saves the settings, no changes will be made to existing zone settings. append — appends the values to existing zones data and updates. overwrite — overwrites the existing zones values, replacing them and updates.

Options: save, append, overwrite
Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Body

application/json
enabledstring

Enable or disable bandwidth limiting globally for HTTP zones. Y means enabled, N means disabled.

Allowed values:YN
policystring

Rate limiting mode. "0" = Static mode (fixed rate applied from the start of the transfer). "1" = Dynamic mode (rate limiting activates only after rateafter bytes have been served).

Allowed values:01
ratenumber

Rate limit in Kbps.

Example:
1024
rateafternumber

KB served before limiting kicks in.

Example:
10240
modestring

Controls how the settings are applied to zones. save — only saves the settings, no changes will be made to existing zone settings. append — appends the values to existing zones data and updates. overwrite — overwrites the existing zones values, replacing them and updates.

Allowed values:saveappendoverwrite

Responses

resultstring

Status of the API response.

messagestring

Human-readable status or result message