Skip to content

Missing zones.settings.list() and bulk zones.settings.edit() methods #2719

@cinderblock

Description

@cinderblock

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

  1. Try to use bulk API functions that are available on HTTP endpoints
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions