-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
Confirm this is a Typescript library issue and not an underlying Cloudflare API issue
- This is an issue with the Typescript library
Describe the bug
Missing zones.settings.list() and bulk zones.settings.edit() methods in library
The Cloudflare API has endpoints to list all zone settings and edit multiple settings at once:
GET /zones/{zone_id}/settings(operation ID:zone-settings-get-all-zone-settings)PATCH /zones/{zone_id}/settings(bulk edit with{ items: [...] }body)
These exist in the OpenAPI spec, but the SDK only exposes the individual setting endpoints:
client.zones.settings.get(settingId, { zone_id }) // GET /zones/{zone_id}/settings/{setting_id}
client.zones.settings.edit(settingId, { zone_id }) // PATCH /zones/{zone_id}/settings/{setting_id}This issue created mostly by Claude
To Reproduce
- Try to use bulk API functions that are available on HTTP endpoints
- Find they are missing
Code snippets
There's no `client.zones.settings.list({ zone_id })` or way to bulk-edit settings.
Currently the only workaround is using the raw HTTP methods inherited from the base client:
const settings = await client.get(`/zones/${zoneId}/settings`);
await client.patch(`/zones/${zoneId}/settings`, { body: { items: updates } });OS
Windows
Runtime version
Bun 1.3.9
Library version
v5.2.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels