# Cannot store data on a table created at Hubspot DB (API)

**URL:** <https://community.hubspot.com/t/cannot-store-data-on-a-table-created-at-hubspot-db-api/30785>\
**Category:** APIs & Integrations\
**Tags:** developer-tools\
**Created:** [January 26, 2021, 4:06pm UTC](https://community.hubspot.com/t/cannot-store-data-on-a-table-created-at-hubspot-db-api/30785 "2021-01-26T16:06:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgurler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tgurler/32/31184_2.png) [@tgurler](https://community.hubspot.com/u/tgurler)\
**Post date:** [January 26, 2021, 4:06pm UTC](https://community.hubspot.com/t/cannot-store-data-on-a-table-created-at-hubspot-db-api/30785/1 "2021-01-26T16:06:02Z")

</div>

Hi,

I cannot store any data to my newly created table on Hubspot DB. Is there something wrong?

Table:

 ![36988i8B34D4F5E267C2B5.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/f/7f7b5fe107ed12838139c27c57048fb56cb3bbe7.png)

Create Call (there is no error at response)

 ![36987iB7EA5C5C38086809.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/9/f9b6f49f136251bff4f4a15d86f8f234e98f88e7.png)

GET call (to read data from table)

 ![36986i05E78F69C7F5ADFA.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/6/0617f07dd97d29121bff6cfbe97b57e4fc2e278f.png)

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [January 27, 2021, 8:19am UTC](https://community.hubspot.com/t/cannot-store-data-on-a-table-created-at-hubspot-db-api/30785/2 "2021-01-27T08:19:57Z")

</div>

So @tgurler new rows will be added to the draft table.

Use the /publish endpoint to push all changes live, and to fetch the draft entries you have to use - **[https://api.hubapi.com/hubdb/api/v2/tables/3411656/rows/draft?hapikey=demo](https://api.hubapi.com/hubdb/api/v2/tables/3411656/rows/draft?hapikey=demo)**

Hope this helps!  
Himanshu

---

<div class="post-metadata">

**Author:** ![tgurler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tgurler/32/31184_2.png) [@tgurler](https://community.hubspot.com/u/tgurler)\
**Post date:** [January 28, 2021, 10:48am UTC](https://community.hubspot.com/t/cannot-store-data-on-a-table-created-at-hubspot-db-api/30785/3 "2021-01-28T10:48:11Z")

</div>

Thanks @himanshurauthan ; /publish definitely fixed this issue.

---

<div class="post-metadata">

**Author:** ![himanshurauthan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/himanshurauthan/32/53076_2.png) [@himanshurauthan](https://community.hubspot.com/u/himanshurauthan)\
**Post date:** [January 28, 2021, 12:21pm UTC](https://community.hubspot.com/t/cannot-store-data-on-a-table-created-at-hubspot-db-api/30785/4 "2021-01-28T12:21:40Z")

</div>

That’s great. I’m glad I was able to give you the correct solution. 😁
