Hey there. Is there a way to perform a differential update of worker settings? For example, I'd li

Hey there.

Is there a way to perform a differential update of worker settings?

For example, I'd like to dynamically bind a setting like so:

curl -s --request PATCH \
  --url https://api.cloudflare.com/client/v4/accounts/xxx/workers/scripts/yyy/settings \
  --header 'Authorization: Bearer zzz' \
  --header 'Content-Type: multipart/form-data' \
  --form 'settings={"bindings":[{"id":"1","name":"DB_1","type":"d1"}]}'

However, this method overrides any previously set bindings. Retrieving all current bindings and adding a new one is another approach, but this will eventually fail due to the max body size limit, so I'm looking for another way of doing this and/or new ideas.
Was this page helpful?