hosting

PUT /v1/sites/{siteId}/cdn/login-rate-limit

Turn the login-page rate limit on or off and set its path and threshold.

All hosting endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

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

NameTypeRequiredWhat it is
siteId (path)UuidYesSite ID (UUIDv7).

Request body

NameTypeRequiredWhat it is
enabledbooleanYes—
pathstringNo—
requests_per_periodintegerNo—

Response

NameTypeRequiredWhat it is
site_idstringYes—
supportedbooleanYes—
enabledbooleanYes—
pathstringYes—
requests_per_periodintegerYes—
period_secondsintegerYesThe counting window and the block time; fixed by the provider's plan.

Errors this endpoint can return

401 · 403 · 404 · 422 · 429 · 502 · 503