deprecated

Purge Cache

You can purge cache for any image by using our cache purge API.

Path Parameters
  • subdomain
    Type: string
    required

    Subdomain is same subdomain you created while creating source. If you serve image from example.gumlet.com, please enter only 'example' for this parameter.

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

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