APIs & Integrations

BlackbitNeueMed
Member | Partner
Member | Partner

Dynamic pages with HubDb API

Is it possible to activate “Use for dynamic pages” checkbox for HubDB tables via HubDB API?

0 Upvotes
3 Replies 3
BlackbitNeueMed
Member | Partner
Member | Partner

Dynamic pages with HubDb API

Thanks. Works perfectly.
But now I do not know how to set hs_name and hs_path in addRow. I tried to add hs_name: “abc” and hs_path: “abc” (on the same level as “values”) but the API simply ignores these.

0 Upvotes
boulter
HubSpot Product Team
HubSpot Product Team

Dynamic pages with HubDb API

The attribute names you want are “path” and “name”, so something like this:

{
  "path": "apath",
  "name": "name of row"
  "values": {
    "3": 7,
    "4": "New Row Text"
  }
}

We’ll get our documentation updated shortly.

boulter
HubSpot Product Team
HubSpot Product Team

Dynamic pages with HubDb API

It’s not yet documented, but you can do a table update and put "useForPages" : true in the JSON body to enable dynamic pages for a table.