{
"hosts": [
"www.example.com",
"images.example.com"
],
"prefixes": [
"www.example.com/foo",
"images.example.com/bar/baz"
],
"tags": [
"some-tag",
"another-tag"
]
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/zones//purge_cache' \
--header 'Content-Type: application/json' \
--data-raw '{
"hosts": [
"www.example.com",
"images.example.com"
],
"prefixes": [
"www.example.com/foo",
"images.example.com/bar/baz"
],
"tags": [
"some-tag",
"another-tag"
]
}'
{
"errors": [],
"messages": [],
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353"
},
"success": true
}