# List in Memory from an API

**URL:** https://community.weweb.io/t/list-in-memory-from-an-api/378
**Category:** How do I?
**Created:** [April 7, 2022, 5:53pm UTC](https://community.weweb.io/t/list-in-memory-from-an-api/378 "2022-04-07T17:53:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![larri.junior](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@larri.junior](https://community.weweb.io/u/larri.junior)
#### Post date: [April 7, 2022, 5:53pm UTC](https://community.weweb.io/t/list-in-memory-from-an-api/378/1 "2022-04-07T17:53:12Z")

</div>

Hi!

I’m using Xano as my backend and I’d like to know if theres is a way to load a list from the API, store this list in memory, and after some changes are made (add, edit and delete), I submit the list back to the database.

Thanks

---

<div class="post-metadata">

### Author: ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)
#### Post date: [April 8, 2022, 9:39am UTC](https://community.weweb.io/t/list-in-memory-from-an-api/378/2 "2022-04-08T09:39:18Z")

</div>

Hi @larri.junior!

Can you tell us a bit more about your use case? Do you want to let users makes multiple changes and only push the list when they’re ready?

You wouldn’t want to update the list in the database in real-time after every change, correct?

---

<div class="post-metadata">

### Author: ![larri.junior](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@larri.junior](https://community.weweb.io/u/larri.junior)
#### Post date: [April 8, 2022, 11:14am UTC](https://community.weweb.io/t/list-in-memory-from-an-api/378/3 "2022-04-08T11:14:39Z")

</div>

Hi, @Joyce !

Yes, that’s correct! I want users make multiple changes before pushing the list to the database.

Thank you

---

<div class="post-metadata">

### Author: ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)
#### Post date: [April 8, 2022, 11:32am UTC](https://community.weweb.io/t/list-in-memory-from-an-api/378/4 "2022-04-08T11:32:54Z")

</div>

Ok cool.

Yes, you could create a Variable in the “Data” menu:

 ![add variable](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/e67a613e8ab74f9e314177a3df623ee0acc1a6f3.png)

Depending on the data type you want to send back to your API, you can choose to create an Object or Array variable for example:  
 ![variable types](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/1X/6066f706ea050b851219110324c9bbdefae97efb.gif)

You could have workflows that update this variable (in this example, we [let users save a list of favorite jobs](https://youtu.be/Ob4jHXJyriY?t=694)) and a workflow on a button that users clicks on to send the updated list when they’re ready.

Does that help?

---

<div class="post-metadata">

### Author: ![larri.junior](https://avatars.discourse-cdn.com/v4/letter/l/b5a626/32.png) [@larri.junior](https://community.weweb.io/u/larri.junior)
#### Post date: [April 8, 2022, 5:32pm UTC](https://community.weweb.io/t/list-in-memory-from-an-api/378/5 "2022-04-08T17:32:55Z")

</div>

Thank you, @Joyce, for your help! Actually I was thinking about using array of object, but I got stuck in updating a specific object inside the array. I didn’t figure out how to do it…

Thanks again
