webflow / js-webflow-api

Node.js SDK for the Webflow Data API
https://www.npmjs.com/package/webflow-api
299 stars 97 forks source link

updateItem and updateItem methods do not update item fieldData #127

Open Vekeryk opened 8 months ago

Vekeryk commented 8 months ago

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

dsinghvi commented 8 months ago

@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!

martinmorenoc commented 4 months ago

same issue here. Forced to use the API directly

robmarshall commented 2 months ago

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

zplata commented 2 months ago

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

hmafzal commented 1 month ago

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

zplata commented 1 month ago

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