What is the correct endpoint to use to publish a change after a row has been added to a hubDB table?
https://api.hubapi.com/cms/v3/hubdb/tables/TABLEID/publish/
or
https://api.hubapi.com/cms/v3/hubdb/tables/TABLEID/push-live/
Neither work …
What is the correct endpoint to use to publish a change after a row has been added to a hubDB table?
https://api.hubapi.com/cms/v3/hubdb/tables/TABLEID/publish/
or
https://api.hubapi.com/cms/v3/hubdb/tables/TABLEID/push-live/
Neither work …
Hi, @Anonymous
Thanks for reaching out. Hey, @RMones @SJaeger @pm8rsh88, do you have any experience with what is being described? Or suggestions on additional information @Anonymous can share to help give more context?
Thank you! — Jaycee
In the 2 URL examples you have provided, you still have the Table ID set to TABLEID. Try replacing it with the numeric value of your table.
Edit: This can be found on the HubDB dashboard, under the ID column.
Doesn’t work for me either:
https://api.hubapi.com/cms/v3/hubdb/tables/1234567/push-live
This is the response I get
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Resource not found</p>
</body>
</html>
By themselves, the API links are not pages and will throw a 404 error if you try and access it. The link is used by your app/module/page to pull in information from Hubspots tables.
For more information on API’s, look here:
I’ve figured it out. My end point was missing /draft