From 22a1300e7699362871e344013ff73537f98fb1f5 Mon Sep 17 00:00:00 2001 From: kathayl Date: Wed, 21 Jan 2026 08:42:19 -0800 Subject: [PATCH] Fix screenshot endpoint example to use URL instead of HTML The example-screenshot-from-url.mdx partial was incorrectly using the 'html' parameter instead of 'url' parameter since its creation. This fixes the example to properly demonstrate taking a screenshot from a URL as the section title indicates. --- .../browser-rendering/example-screenshot-from-url.mdx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/content/partials/browser-rendering/example-screenshot-from-url.mdx b/src/content/partials/browser-rendering/example-screenshot-from-url.mdx index 7e897a75ce3993f..8de9a4643496c66 100644 --- a/src/content/partials/browser-rendering/example-screenshot-from-url.mdx +++ b/src/content/partials/browser-rendering/example-screenshot-from-url.mdx @@ -3,10 +3,7 @@ curl -X POST 'https://api.cloudflare.com/client/v4/accounts//browser- -H 'Authorization: Bearer ' \ -H 'Content-Type: application/json' \ -d '{ - "html": "Hello World!", - "screenshotOptions": { - "omitBackground": true - } + "url": "https://example.com" }' \ --output "screenshot.png" ```