APIs & Integrations

tgurler
Participant

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

SOLVE

Hi,

 

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

 

Table:

Screen Shot 2021-01-26 at 19.05.17.png

Create Call (there is no error at response)

Screen Shot 2021-01-26 at 19.01.06.png

GET call (to read data from table)

Screen Shot 2021-01-26 at 19.00.09.png

0 Upvotes
1 Accepted solution
himanshurauthan
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

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

SOLVE

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

 

Hope this helps!
Himanshu

Digital Marketing & Inbound Expert In Growth Hacking Technology

View solution in original post

3 Replies 3
tgurler
Participant

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

SOLVE

Thanks @himanshurauthan ; /publish definitely fixed this issue.

himanshurauthan
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

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

SOLVE

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

Digital Marketing & Inbound Expert In Growth Hacking Technology
himanshurauthan
Solution
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

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

SOLVE

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

 

Hope this helps!
Himanshu

Digital Marketing & Inbound Expert In Growth Hacking Technology