aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Vivaan Verma <[email protected]>2021-07-25 16:41:23 +0100
committerGravatar GitHub <[email protected]>2021-07-25 16:41:23 +0100
commit750c0ffe7a28c4d029298cb4ed870b0e0697c8f0 (patch)
tree1f22141de3d18dc59babf82b274c5f1edcf6b1a5
parentChange kwarg from body to json (diff)
Correct endpoint
Co-authored-by: Joe Banks <[email protected]>
-rw-r--r--arthur/apis/cloudflare/zones.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/arthur/apis/cloudflare/zones.py b/arthur/apis/cloudflare/zones.py
index 0f51a08..7debfd1 100644
--- a/arthur/apis/cloudflare/zones.py
+++ b/arthur/apis/cloudflare/zones.py
@@ -28,7 +28,7 @@ async def list_zones(zone_name: Optional[str] = None) -> dict[str, str]:
async def purge_zone(zone_identifier: str) -> dict:
"""Purge the cache for a Cloudflare zone."""
- endpoint = f"https://api.cloudflare.com/client/v4/zones/{zone_identifier}"
+ endpoint = f"https://api.cloudflare.com/client/v4/zones/{zone_identifier}/purge_cache"
request_body = {
"purge_everything": True