From b808d5a2e45e9f523ecf5775ae1e7ae2bd1cda0a Mon Sep 17 00:00:00 2001 From: Nic <123965403+ngayerie@users.noreply.github.com> Date: Mon, 19 May 2025 18:19:35 +0200 Subject: [PATCH] Update enable-log-retention.mdx --- src/content/partials/logs/enable-log-retention.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/content/partials/logs/enable-log-retention.mdx b/src/content/partials/logs/enable-log-retention.mdx index c1c30cfb47dabe..1c0e242dce1a68 100644 --- a/src/content/partials/logs/enable-log-retention.mdx +++ b/src/content/partials/logs/enable-log-retention.mdx @@ -9,6 +9,7 @@ import { TabItem, Tabs } from "~/components"; ```bash curl https://api.cloudflare.com/client/v4/zones/{zone_id}/logs/control/retention/flag \ +--request POST \ --header "Authorization: Bearer " \ --header "Content-Type: application/json" \ --data '{"flag": true}' @@ -18,6 +19,7 @@ curl https://api.cloudflare.com/client/v4/zones/{zone_id}/logs/control/retention ```txt curl.exe "https://api.cloudflare.com/client/v4/zones/{zone_id}/logs/control/retention/flag" ^ +--request POST ^ --header "Authorization: Bearer " ^ --header "Content-Type: application/json" ^ --data "{""flag"": true}" @@ -32,4 +34,4 @@ $bodyFlag = @{flag = $true} | ConvertTo-Json Invoke-RestMethod -Uri $uri -Method Post -Headers $headers -Body $bodyFlag -ContentType "application/json" ``` - \ No newline at end of file +