Clear the zone cache
Clears cached content for the zone. Set action to all to clear the whole zone cache, tag to clear all entries matching the given tags, uri to clear a single URI (requires hostname and uri), or html, images or assets to clear all cached content of that class across the zone. When the zone serves content through the CDN, the matching CDN cache is purged as well; cdnCleared reports whether that happened. Limited to one request per zone every 5 seconds; further requests are rejected with 429 Too Many Requests and a Retry-After header. Because of this strict limit, the endpoint is not suited for routine, application-driven cache invalidation. See the cache invalidation guide for the preferred approaches.
Authorizations
Long-lived API token created via POST /api/api-tokens (returned once in plaintext). A token created with readOnly may only perform safe requests (GET, HEAD, OPTIONS); write requests are rejected on every endpoint.
JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer
Parameters
Path Parameters
Zone identifier
Request Body
Responses
cache-clear resource created
