The SDK docs explicitly mention that non-provided fields are not sent: https://github.com/cloudflare

The SDK docs explicitly mention that non-provided fields are not sent: https://github.com/cloudflare/cloudflare-go/tree/main?tab=readme-ov-file#request-fields

All request parameters are wrapped in a generic Field type, which we use to distinguish zero values from null or omitted fields.
This prevents accidentally sending a zero value if you forget a required parameter, and enables explicitly sending null, false, '', or 0 on optional parameters. Any field not specified is not sent.

Weird that in your case @dimsid
null
is being sent for
params
. Did you not provide it at all (as your snippet above implies), or did you provide it explicitly as null?

Can you upgrade your SDK version used to https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4#section-readme and try that?
Was this page helpful?