hosting
PUT /v1/sites/{siteId}/cdn/login-rate-limit
Turn the login-page rate limit on or off and set its path and threshold.
Authentication
Send an API key as a bearer token. The key must carry the hosting.cdn.manage permission; a key without it is refused with 403, not 404.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/cdn/login-rate-limit \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "enabled": <boolean> }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
Turning it off removes the rule (the provider's free plan allows one rate-limiting rule per zone, so a parked rule would block another site on the same zone). path defaults to /wp-login.php and accepts letters, digits and . _ ~ - / only. A site on a shared preview zone is refused with 422. Audited as site.cdn.login_rate_limit_updated. Requires hosting.cdn.manage.
Parameters
| Name | Type | Required | What it is |
|---|---|---|---|
siteId (path) | Uuid | Yes | Site ID (UUIDv7). |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
enabled | boolean | Yes | — |
path | string | No | — |
requests_per_period | integer | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
site_id | string | Yes | — |
supported | boolean | Yes | — |
enabled | boolean | Yes | — |
path | string | Yes | — |
requests_per_period | integer | Yes | — |
period_seconds | integer | Yes | The counting window and the block time; fixed by the provider's plan. |
Errors this endpoint can return
401 · 403 · 404 · 422 · 429 · 502 · 503