Purge CDN cache
POST
/purge
const url = 'https://api.quantcdn.io/v1/purge';const options = { method: 'POST', headers: { 'Quant-Customer': 'example', 'Quant-Project': 'example', 'Quant-Url': '/content', 'Cache-Keys': 'azbe5 gormb1', 'Soft-Purge': 'true', 'Quant-Token': '<Quant-Token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.quantcdn.io/v1/purge \ --header 'Cache-Keys: azbe5 gormb1' \ --header 'Quant-Customer: example' \ --header 'Quant-Project: example' \ --header 'Quant-Token: <Quant-Token>' \ --header 'Quant-Url: /content' \ --header 'Soft-Purge: true'Purge CDN cache. Supports purging via individual content paths or cache-keys.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Quant-Customer
required
string
The customer account name
Quant-Project
required
string
The project machine name
Quant-Url
string
The URL path to purge
Example
/contentCache-Keys
string
The cache keys to purge separated by a space
Example
azbe5 gormb1Soft-Purge
string
Set to issue a soft-purge of the content, which will make it as stale rather than immediately delete from edge caches
Example
trueResponses
Section titled “Responses”Okay
Invalid credentials
