Update specific items in an array

Hey, I have watched a few of the Customer Corner videos now re updating/editing arrays through the API, but I'm struggling to apply them to my situation. I've recorded this loom, but will give a quick overview here too:

The frontend user

I have a page in my app where users can update the 'Core' for their brand, e.g. the Purpose, Vision, Mission and Values statements.

On the Webflow front-end, these are form fields where users can click and type and it automatically updates. I've set it up between Webflow/Wized/Xano to do all the single text fields (Purpose, Vision & Mission) but I can't work out how to do it for the array of values.

Users can have one of any five 'values' for their brand.

Each value consists of the 'one word' term for it and the descriptive text, e.g.

  • (One word : text)
  • Systems thinking : we need to understand the entirety of a business before consulting
  • Respect : we need to be more like Aretha Franklin
  • Local pride : we are good citizens of Narnia

etc

Say a user only wants to change 'Local pride' to 'We love our home'. Nothing else needs to update.

The API

I saw this video where it was showing how to update opening hours by finding, for example, 'Monday' and updating the associated opening and closing hours. But if the first item in the array is also subject to change, how do I reference it?

I'm sure I'm missing something simple, but simple is as simple does! :)

Working with APIs
3 replies