# Send json via WebAPI PUT

**URL:** https://community.thunkable.com/t/send-json-via-webapi-put/75641
**Category:** Questions about Thunkable X
**Created:** [May 1, 2019, 1:39pm UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641 "2019-05-01T13:39:40Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![RobertKubin](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/robertkubin/32/32243_2.png) [@RobertKubin](https://community.thunkable.com/u/RobertKubin)
#### Post date: [May 1, 2019, 1:39pm UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/1 "2019-05-01T13:39:40Z")

</div>

Dear Thunkables,

I’m pretty new to this forum and tried to find an answer to the following problem, but did not find any. So if this was discussed in another post, please let me know.

I successfully managed to build a WebAPI connection to the Online Database [QuintaDB.com](http://QuintaDB.com). In fact I can access a table via GET, a record within this table and read the single fields of the record to display them in my Thunkable app.

My problem is to write back (=update) data in this record. The QuintaDB doc tells me to send a json like this:

{“rest\_api\_key”:“API\_KEY”, “values” =\> {“aNW4nkW5bdUjldO8oKuSku” : 3, “aMW4HKWR9bnOoGWQbpWQS4” : “b”, “cMW6pcTSjbWOFdTCkBtmkN” : “c”}}

As I cannot send a body using PUT, the only way is to transport the values via the URL. So I build a block as seen here:

 ![Thunkable_PUT](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/b/6b2fcb09f35303595a72c02e58460116eff92e81.jpeg)

(I have to adress the field not via its name but via ‘bCBSov…’)  
This does not work right. The ‘?values=’ seems ok because the record is updated. But in the field ‘bCBSov…’ is not ‘Erwin’ as I would like to have but ‘bCBSov…’ as well?! So the name of the field is also written in(!) the field value. I have also tried:

?“values”=\>{“bCBSovW6LdNOkaW7iTiCof” : “Erwin”}  
?values=\>{“bCBSovW6LdNOkaW7iTiCof” : “Erwin”}  
?values={“bCBSovW6LdNOkaW7iTiCof” : “Erwin”}  
?values=\>{“bCBSovW6LdNOkaW7iTiCof”=“Erwin”}

The result is always the same.  
I guess I have to find the correct syntax to transmit this json structure. Or is there another way to deal with the ‘generate json from object’? Each suggestion is welcome …

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [May 1, 2019, 11:56pm UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/2 "2019-05-01T23:56:27Z")

</div>

Hi @RobertKubin, thanks for your question! 👍

I’m not familiar with the QuintaDB platform, but what you have there looks pretty interesting.

Oner thing that caught my eye was the empty socket at the end of your `join` block, I’m not sure if that’s the cause but it’s probably worth taking it out, just in case.

The other thing I’d ask is that you post a link to the QuintaDB docs where the specify how to upload data via JSON like this so that other members of the community will be able to help you out.

Thanks.

---

<div class="post-metadata">

### Author: ![RobertKubin](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/robertkubin/32/32243_2.png) [@RobertKubin](https://community.thunkable.com/u/RobertKubin)
#### Post date: [May 2, 2019, 5:21am UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/3 "2019-05-02T05:21:36Z")

</div>

Hi Domhall,

Thank you very much for your immediate Reply.

I took the empty socket out with no different effect.

And here is the link to the QuintaDB doc, jumping right to the Update Record section …

> **[QuintaDB REST API, online database REST API](https://quintadb.com/api/index#update_record)**
>
> The best online database and web-form builder. Create free CRM with SMS and Email newsletters.

Thanx for you help …

Robert

---

<div class="post-metadata">

### Author: ![RobertKubin](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/robertkubin/32/32243_2.png) [@RobertKubin](https://community.thunkable.com/u/RobertKubin)
#### Post date: [May 2, 2019, 7:36am UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/4 "2019-05-02T07:36:22Z")

</div>

Dear all,

PROBLEM SOLVED! I contacted QuintaDB as well and they found a bug in the API json call.  
So if you’re interested, I can provide my successfull connection to QuintaDB so far, that could be of interest for anybody who tries to connect to a Online Database with Web API. Let me know …

Robert

---

<div class="post-metadata">

### Author: ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)
#### Post date: [May 2, 2019, 7:39am UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/5 "2019-05-02T07:39:57Z")

</div>

Be great if you could share! 😃

---

<div class="post-metadata">

### Author: ![tonyz80](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tonyz80/32/67985_2.png) [@tonyz80](https://community.thunkable.com/u/tonyz80)
#### Post date: [June 10, 2020, 3:14pm UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/6 "2020-06-10T15:14:31Z")

</div>

Hi Robert

I am interested in your experience in CRUD data with Quinta DB.  
Whatever you can share with us, that will let me sample an app using your WebAPI approach, it would be of great help.

Thanks  
Tony

---

<div class="post-metadata">

### Author: ![shauryamantrala7](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shauryamantrala7](https://community.thunkable.com/u/shauryamantrala7)
#### Post date: [August 16, 2022, 11:16pm UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/7 "2022-08-16T23:16:23Z")

</div>

Hi, I am trying to connect QuintaDB with thinkable by following your video. I am stuck at one point. In the video, you do the Fetch All Records rest API call. I have bene trying to do it except nothing comes up when I perform it. “[https://quintadb.com/apps/bHqh3dPmnlWRpcUmo2WPf\_/dtypes/entity/ceW4GlW6DcS5BdKXeuB8o1.json](https://quintadb.com/apps/bHqh3dPmnlWRpcUmo2WPf_/dtypes/entity/ceW4GlW6DcS5BdKXeuB8o1.json)” - This is the URL I was trying and it is all in correct format, except when I enter it, this is what comes up: “`[]`”. Please help.

---

<div class="post-metadata">

### Author: ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)
#### Post date: [August 16, 2022, 11:46pm UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/8 "2022-08-16T23:46:53Z")

</div>

I don’t think you’ll get a respone from a 2 yesr old post. I would recommend creating a new post, explaining your issue. And what you have tried

---

<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: [August 16, 2022, 11:56pm UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/9 "2022-08-16T23:56:58Z")

</div>

@shauryamantrala7 I agree with @zander but also, we can’t access the API url without an API key.

Can you post the entire JSON response as text here (or preferably in a new topic)? That is, if you access the url from a browser (not from within Thunkable), what do you get?

Make sure to highlight the pasted text in your post and apply the “Preformatted Text” option in the toolbar (the button looks like \</\>).

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:27am UTC](https://community.thunkable.com/t/send-json-via-webapi-put/75641/10 "2024-11-08T11:27:23Z")

</div>


