From 750c0ffe7a28c4d029298cb4ed870b0e0697c8f0 Mon Sep 17 00:00:00 2001 From: Vivaan Verma <54081925+doublevcodes@users.noreply.github.com> Date: Sun, 25 Jul 2021 16:41:23 +0100 Subject: Correct endpoint Co-authored-by: Joe Banks --- arthur/apis/cloudflare/zones.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/apis/cloudflare/zones.py') 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 -- cgit v1.2.3