Purge Cache
Purges files from Global Caches & Internal Caches
Headers
Name
Type
Description
Request Body
Name
Type
Description
I26JPCNTSVM8DB{
msg: "error details"
details: "..."
} // Explanation of error{
// Please contact support if you are getting this error constantly.
}Example Codes
curl --location 'https://api.imagemash.io/v1/storage/purgeCache' \
--header 'apikey: your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"domain": "john.imagemash.io",
"paths": [
"/logo.png",
"/img/big/my_"
]
}'var axios = require('axios');
var data = JSON.stringify({
"domain": "john.imagemash.io",
"paths": [
"/logo.png",
"/img/big/my_"
]
});
var config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.imagemash.io/v1/storage/purgeCache',
headers: {
'apikey': 'your_api_key',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Get list of your Purge requests
Headers
Name
Type
Description
Example Codes
Last updated