diff options
| author | 2021-07-25 16:41:23 +0100 | |
|---|---|---|
| committer | 2021-07-25 16:41:23 +0100 | |
| commit | 750c0ffe7a28c4d029298cb4ed870b0e0697c8f0 (patch) | |
| tree | 1f22141de3d18dc59babf82b274c5f1edcf6b1a5 | |
| parent | Change kwarg from body to json (diff) | |
Correct endpoint
Co-authored-by: Joe Banks <[email protected]>
| -rw-r--r-- | arthur/apis/cloudflare/zones.py | 2 |
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 |