Skip to content

Commit 72c793c

Browse files
ngayeriesdnts
authored andcommitted
Update enable-log-retention.mdx (cloudflare#22552)
1 parent 722415c commit 72c793c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/content/partials/logs/enable-log-retention.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { TabItem, Tabs } from "~/components";
99

1010
```bash
1111
curl https://api.cloudflare.com/client/v4/zones/{zone_id}/logs/control/retention/flag \
12+
--request POST \
1213
--header "Authorization: Bearer <API_TOKEN>" \
1314
--header "Content-Type: application/json" \
1415
--data '{"flag": true}'
@@ -18,6 +19,7 @@ curl https://api.cloudflare.com/client/v4/zones/{zone_id}/logs/control/retention
1819

1920
```txt
2021
curl.exe "https://api.cloudflare.com/client/v4/zones/{zone_id}/logs/control/retention/flag" ^
22+
--request POST ^
2123
--header "Authorization: Bearer <API_TOKEN>" ^
2224
--header "Content-Type: application/json" ^
2325
--data "{""flag"": true}"
@@ -32,4 +34,4 @@ $bodyFlag = @{flag = $true} | ConvertTo-Json
3234
Invoke-RestMethod -Uri $uri -Method Post -Headers $headers -Body $bodyFlag -ContentType "application/json"
3335
```
3436

35-
</TabItem> </Tabs>
37+
</TabItem> </Tabs>

0 commit comments

Comments
 (0)