Cloudflare API breaking change: path-removed on /system/accounts/{account_tag}/stores/{store_id}/secrets/{secret_id}/duplicate
What changed
According to the OpenAPI spec diff (cloudflare/cloudflare-oas-7abe88500e55-to-c92b9b0fde23-removals), the following surface changed:
path-removed: /system/accounts/{account_tag}/stores/{store_id}/secrets/{secret_id}/duplicate
cloudflare OAS corridor pair 7abe88500e55 -> c92b9b0fde23 (client-breaking removals subset ingested 2026-08-01)
Who is affected
Mechanical URL rewrite at every call site: requests hitting '/system/accounts/{account_tag}/stores/{store_id}/secrets/{secret_id}/duplicate' (post) move to '/accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id}/duplicate'.
To find out whether your repo is hit — file and line number, no code leaving your machine:
npx mendapi sync # the one network call: fetch the change feed npx mendapi scan --repo . # local scan, nothing leaves your machine
How to fix it
mendapi ships a deterministic migration pack for this change (cloudflare-secrets-store-and-ai-security-path-renames). Preview the patch locally (dry-run is the default; nothing is modified without --apply):
npx mendapi fix --repo . --migration cloudflare-secrets-store-and-ai-security-path-renames
The pack is idempotent, gold-regression tested, and safe on partially migrated code.
What the migration does:
Mechanical URL rewrite at every call site: requests hitting '/system/accounts/{account_tag}/stores/{store_id}/secrets/{secret_id}/duplicate' (post) move to '/accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id}/duplicate'. Update raw URL builders, route constants and API client wrappers accordingly. The successor carries the identical method set in NEW; the legacy /system alias is removed. account_tag becomes account_id.
Before:
await cf.request('/system/accounts/{account_tag}/stores/{store_id}/secrets/{secret_id}/duplicate');
After:
await cf.request('/accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id}/duplicate');
Replacement data source: the successor route /accounts/{account_id}/secrets_store/stores/{store_id}/secrets/{secret_id}/duplicate in the NEW spec
Detected and tracked by mendapi — Dependabot for every API you depend on. Scans run locally; your code never leaves your machine.
Related
- cloudflare breaking-change guide — every tracked cloudflare entry on one page, with fixability verdicts.
- cloudflare-typescript v6 to v7 migration — the full migration guide with pack-backed fixes.
- 136 raw removals, 17 real ones: what a spec diff over-reports — the long-form methodology report behind this provider's tracked changes.
- All monitored providers — live change counts for cloudflare and 19 others.
- Migration pack catalog — every deterministic fix mendapi ships.
- Getting started — scan your repo in 30 seconds, no code leaves your machine.