Skip to content

[Rules] Update Custom Errors API paths to use zone_id - #33645

Merged
mvvmm merged 1 commit into
productionfrom
fix/custom-errors-zone-id-path
Sep 24, 2026
Merged

mvvmm merged 1 commit into
productionfrom
fix/custom-errors-zone-id-path

Conversation

@mvvmm

@mvvmm mvvmm commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes the CI build failure currently affecting all open PRs and the next production deploy.

The prebuild step fetches the latest Cloudflare API OpenAPI schema from middlecache on every build. The upstream schema recently renamed the zone path parameter from {zone_identifier} to {zone_id} (356 paths now use {zone_id}). The <APIRequest> calls on the Custom Errors "Common API calls" page still referenced the old path, so prerendering failed with:

[APIRequest] Operation GET /zones/{zone_identifier}/custom_pages/{identifier} not found in schema.

This updates the two APIRequest calls (GET and PUT) to /zones/{zone_id}/custom_pages/{identifier}, matching the current schema. Both operations exist at the renamed path with unchanged identifier parameter and token groups. No content changes otherwise.

Documentation checklist

@mvvmm
mvvmm requested review from a team, mbullock1986 and smarsh-cf as code owners September 24, 2026 02:54
@github-actions github-actions Bot added the product:rules Related to rules label Sep 24, 2026
@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-custom-errors-zone-id-path.previews.developers.cloudflare.com (commit 66ec72c)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0daee505.previews.developers.cloudflare.com 66ec72c 2026-09-24T02:39:02.097Z Visit the dashboard ↗

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed 66ec72c · 0 findings · incremental

Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@mvvmm
mvvmm enabled auto-merge (squash) September 24, 2026 03:04
@github-actions

Copy link
Copy Markdown
Contributor

@mvvmm
mvvmm merged commit 2d3898e into production Sep 24, 2026
16 checks passed
@mvvmm
mvvmm deleted the fix/custom-errors-zone-id-path branch September 24, 2026 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:rules Related to rules size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants