Purge Image Cache
You can purge the cache for any image path by using this cache purge API.
Path Parameters
- Type: stringsource
_id requiredImage Source ID
Body
application/json
- Type: array string[]pathsrequired
An array of path of images to purge. It should be provided without any query parameters.
Responses
- application/json
- application/json
Request Example for post/image/purge/{source_id}
import Gumlet from '@gumlet/nodejs-sdk';
const client = new Gumlet({
apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});
const imageSource = await client.imageSources.purge('sourceId', { paths: ['image.jpeg', 'image2.png'] });
console.log(imageSource);
{
"status": "string"
}
