js-webflow-api icon indicating copy to clipboard operation
js-webflow-api copied to clipboard

updateItem and updateItem methods do not update item fieldData

Open Vekeryk opened this issue 1 year ago • 7 comments

SDK Version: 2.1.1

As the interface CollectionItemFieldData doesn't have a field for fieldData, the serializer strips all custom fields. This makes the library almost useless, as you can't update the custom field of your items.

webflow-api/api/resources/collections/resources/items/client/Client.js Items.updateItem: image image

Vekeryk avatar Mar 07 '24 14:03 Vekeryk

@Vekeryk thanks for filing this issue, I hear your frustration. This will require an update to Webflow's OpenAPI spec; we'll see if we can get an update merged in and released!

dsinghvi avatar Mar 07 '24 15:03 dsinghvi

same issue here. Forced to use the API directly

martinmorenoc avatar Jun 17 '24 17:06 martinmorenoc

Any movement on this? It is holding us back from migrating away from the V1 keys.

robmarshall avatar Aug 18 '24 13:08 robmarshall

Hey folks, we're revisiting this now! Will hopefully have an update soon.

zplata avatar Aug 20 '24 15:08 zplata

@zplata any updates on this? This is blocking us from migrating to V2 as well.

hmafzal avatar Sep 17 '24 21:09 hmafzal

Hey @hmafzal @robmarshall - sorry for the delay. Mind trying with v2.4.2? We've made a fix so that you can pass in additional fields in fieldData and it should not get stripped in the request.

There are some other fixes here as well you can check out on release notes

zplata avatar Sep 30 '24 14:09 zplata