You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
accounts/{account_id}/rules/lists/{list_id}/items body not supported #2665
Confirm this is a Python library issue and not an underlying Cloudflare API issue.
This is an issue with the Python library
Describe the bug
hi
The openapi defintiion for accounts/{account_id}/rules/lists/{list_id}/items has support for a requestBody but the library (python one, but also go, curl...) does not reflect this (and does not support it).
This is might be an issue in the openapi.yaml definition.
tx
To Reproduce
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
item = client.rules.lists.items.delete(
list_id="2c0fc9fa937b11eaa1b71c4d701ab86e",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
body=[{"id":"1234567890abcd"}]
)
@jhutchings1 Not the OP, but do you have an ETA or any interim information on whether this is a documentation/OpenAPI issue, library implementation issue, or Cloudflare API issue?
Activity
jhutchings1 commentedon Jun 30, 2025
Hello, I have opened a bug on the team so they can take a look.
asolis-cc commentedon Jul 10, 2025
@jhutchings1 Not the OP, but do you have an ETA or any interim information on whether this is a documentation/OpenAPI issue, library implementation issue, or Cloudflare API issue?
jhutchings1 commentedon Jul 10, 2025
I've pinged the engineering team for an update on this and asked them to loop back on this. Thanks!
nlsandler commentedon Jul 10, 2025
Thanks for your patience, we've just pushed a fix that should be in the next release
asolis-cc commentedon Jul 21, 2025
For future reference, this ended up working for us: