Purge_cache api use question


#1

i use api cache pages file.
use:
curl -X DELETE “https://api.cloudflare.com/client/v4/zones/023e105f4ecef8ad9ca31a8372d0c353/purge_cache” -H “X-Auth-Email:[redacted]” -H “X-Auth-Key:???” -H “Content-Type: application/json” --data ‘{“files”:[“https://kirabuy.com/modules/system/assets/css/framework.extras.css"],“tags”:[“some-tag”,"another-tag”]}’

show questsion:
{“success”:false,“errors”:[{“code”:1095,“message”:“Sorry, you do not have access to purge cache for that zone id or that zone id is invalid”}],“messages”:[],“result”:null}

How should we solve this problem

please help me, Thanks


#2

X-auth-key is my intentional modification, sorry


#3

Purging is by URL or by tag. Purge by tag is only available on the ENT plan I believe so try dropping this portion: “tags”:[“some-tag”,"another-tag”]}’


#4

thanks your help.

but i have a new problem.
plz look the image:

and i thank use Python way use the api。
Do you have any reference information


#5

can you help me ?


#6

it’s ok,
thank you