Purge Image Cache

You can purge the cache for any image path by using this cache purge API.

Path Parameters
  • source_id
    Type: string
    required

    Image Source ID

Body
application/json
  • paths
    Type: array string[]
    required

    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}
curl 'https://api.gumlet.com/v1/image/purge/{source_id}' \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "paths": [
    "image.jpeg",
    "image2.png"
  ]
}'
{
  "status": "string"
}