Restore & PurgeZone Cache Purge

Zone Cache Purge

Purge cache of a HTTP push zone

curl -X POST "https://api.5centscdn.com/v2/zones/http/push/42/purge" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "files": [
    "/videos/file.mp4",
    "/images/logo.png"
  ]
}'
{
  "result": "success",
  "purgeId": "1234667788957"
}
POST
/zones/http/push/{zoneid}/purge
POST
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Content-Typestring
Required

The media type of the request body

Options: application/json
filesarray

List of file paths to purge. The Purge tab's "By Path" and "By Pattern" operation types provide two path input fields, so 1-2 paths is the common case, but more can be sent. Omit this field entirely (send an empty body) to purge the whole zone - this is what the Purge tab's "All" operation type does.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Path Parameters

zoneidinteger
Required

Zone ID

Example:
42

Body

application/json
filesarray

List of file paths to purge. The Purge tab's "By Path" and "By Pattern" operation types provide two path input fields, so 1-2 paths is the common case, but more can be sent. Omit this field entirely (send an empty body) to purge the whole zone - this is what the Purge tab's "All" operation type does.

Example:
["/videos/file.mp4","/images/logo.png"]

Responses

resultstring

Status of the API response.

purgeIdstring

Unique identifier for this operation, returned in the success response and used to look up operation details via the purge history and purge details endpoints.