Purge CDN cache
/cdn/zones/{zone_uuid}/purge-cacheRemove cached copies of your content from every CDN location so the next request fetches a fresh copy from your origin. Purge the whole zone with {"everything": true}, up to 100 paths with {"paths": [...]}, up to 30 cache tags with {"tags": [...]} (the zone needs cache_tag_header) or the cached content of one or two hostnames of the zone with {"hosts": [...]}. Send exactly one of the four. A path ending in * purges everything under that prefix. Purging usually completes within a minute; follow its progress with the purge history. Each organization can request up to 300 purges per hour, of which at most 60 may purge the whole zone, a prefix or a hostname.
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Path parameters
Request body
Purge cached content of a CDN zone: everything, a list of paths, a list of tags or a list of hostnames.
Set exactly one of everything, paths, tags or hosts. Invalid combinations or values return 422.
Purge every cached file of the zone (system and custom domain).
falsePaths to purge (max 100, 2048 characters each). Each starts with '/', uses printable ASCII without spaces, quotes or backslashes, and matches with or without query string. A trailing '*' purges every path with that prefix.
Cache tags to purge (max 30, 1 to 256 bytes each, case sensitive, printable ASCII without spaces, commas, quotes or backslashes). Purges every object the origin tagged with any of them, in the header named by the zone's cache_tag_header. The zone needs that setting.
Hostnames to purge (1 or 2): the zone's domain and/or custom_domain, in lowercase. Purges every object cached for that hostname, on every path.
Responses
An identical purge is queued and not started yet
application/json
"pending""in_progress""completed""partial""failed""expired"