Cache purge
Purge content from the CDN edge cache.
Endpoint
https://www.pushrcdn.com/api/v3/purge
Methods
POST
Parameters
Field | Type | Description |
zone_id | integer | Id of the CDN zone to be purged |
url | string | Full URL to the file that shall be purged, |
Headers
Field | Type | Description |
APIKEY | string | Your 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
HTTP | JSON | Description |
200 | {"status":"success"} | Purged |
401 | {"status":"error","description":"msg"} | Wrong API key or zone ID |