# How to edit data using Web API Put, Patch, Delete, etc

**URL:** <https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684>\
**Category:** Questions about Thunkable X\
**Tags:** firebase, webapi\
**Created:** [January 27, 2022, 6:40am UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684 "2022-01-27T06:40:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![barnwalvivaang](https://avatars.discourse-cdn.com/v4/letter/b/c77e96/32.png) [@barnwalvivaang](https://community.thunkable.com/u/barnwalvivaang)\
**Post date:** [January 27, 2022, 6:40am UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/1 "2022-01-27T06:40:15Z")

</div>

How do you edit data using the Web API? (Because the firebase components don’t offer that much of using it with operations like Create, Read, Update, Delete. All we get is Save (Create, Update) and Get (Read) for the firebase components (And you don’t get to use the cloud storage of firebase.))

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 27, 2022, 7:08am UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/2 "2022-01-27T07:08:03Z")

</div>

> [@barnwalvivaang](#):
>
> All we get is Save (Create, Update) and Get (Read) for the firebase components

Delete is basically overwriting the existing data and is accomplished by **SAVING** null values to the required key.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [January 27, 2022, 11:12am UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/3 "2022-01-27T11:12:41Z")

</div>

You can do all the crud with Firebase data using the cloud variables.

I’ve been poking at our team about the second point. Would our community benefit from having the Firebase login access token so a user can then also use Firebase storage/ functions/ firestore

At the moment we only have access via blocks to Firebase authentication and real time database.

---

<div class="post-metadata">

**Author:** ![barnwalvivaanthunk3c](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@barnwalvivaanthunk3c](https://community.thunkable.com/u/barnwalvivaanthunk3c)\
**Post date:** [January 28, 2022, 5:39am UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/4 "2022-01-28T05:39:07Z")

</div>

Not actually saving NULL values, but delete the property itself.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [January 28, 2022, 6:57am UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/5 "2022-01-28T06:57:02Z")

</div>

> [@barnwalvivaanthunk3c](#):
>
> but delete the property itself.

When you save **null** to the **parent key** , all **child keys** are removed (deleted).

---

<div class="post-metadata">

**Author:** ![barnwalvivaanthunk3c](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@barnwalvivaanthunk3c](https://community.thunkable.com/u/barnwalvivaanthunk3c)\
**Post date:** [February 2, 2022, 3:58pm UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/6 "2022-02-02T15:58:18Z")

</div>

deleting the child keys and the value of the property without putting any null value, and making sure it can’t be restored just by changing the value.

Or do I have to code a function to edit without parsing from JSON (like not editing it the normal way?)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 2, 2022, 4:03pm UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/7 "2022-02-02T16:03:56Z")

</div>

> [@barnwalvivaanthunk3c](#):
>
> deleting the child keys and the value of the property without putting any null value, and making sure it can’t be restored just by changing the value.

Can you give an example of this? A before and after example?

Have you tried @muneer’s suggestion for saving a null value to the parent key… and did that work for you?

---

<div class="post-metadata">

**Author:** ![barnwalvivaanthunk3c](https://avatars.discourse-cdn.com/v4/letter/b/f19dbf/32.png) [@barnwalvivaanthunk3c](https://community.thunkable.com/u/barnwalvivaanthunk3c)\
**Post date:** [February 2, 2022, 4:13pm UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/8 "2022-02-02T16:13:41Z")

</div>

Nope. It didn’t work.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [February 2, 2022, 4:54pm UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/9 "2022-02-02T16:54:10Z")

</div>

> [@barnwalvivaanthunk3c](#):
>
> It didn’t work.

Can you provide an example?  
I know it always works.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [February 2, 2022, 6:07pm UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/10 "2022-02-02T18:07:10Z")

</div>

> [@barnwalvivaanthunk3c](#):
>
> Nope. It didn’t work.

This is decent information but not enough to help. Can you show what you’ve tried?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 3, 2022, 6:07pm UTC](https://community.thunkable.com/t/how-to-edit-data-using-web-api-put-patch-delete-etc/1698684/11 "2022-05-03T18:07:39Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
