Cache purge

Purge content from the CDN edge cache.

Endpoint

https://www.pushrcdn.com/api/v3/purge

Methods

POST

Parameters

FieldTypeDescription
zone_idintegerId of the CDN zone to be purged
urlstring

Full URL to the file that shall be purged,
starting with http:// or https://. No trailing slash!
To instead purge the entire cache use all

Headers 

FieldTypeDescription
APIKEYstringYour account API key

Examples

Purge the file "image.jpg" :

curl -d "zone_id=000" \
-d "url=https://c000z000.r-cdn.com/image/image.jpg" \
-H "Accept: application/json" \
-H "APIKEY: 2d49e8f645d90818783c4e6c46f32ca0677ac401" \
-X POST "https://www.pushrcdn.com/api/v3/purge"

Purge the cache of the entire CDN zone:

curl -d "zone_id=000" \
-d "url=all" \
-H "Accept: application/json" \
-H "APIKEY: 2d49e8f645d90818783c4e6c46f32ca0677ac401" \
-X POST "https://www.pushrcdn.com/api/v3/purge"

Response

HTTPJSONDescription
200{"status":"success"}Purged
401{"status":"error","description":"msg"}Wrong API key or zone ID