APIs & Integrations

eugenio_rossi
Contributor | Platinum Partner
Contributor | Platinum Partner

Create Page with custom module via API

Hi,

We followed the following documentation to try to create a page with a custom module in it.

https://legacydocs.hubspot.com/docs/methods/pages/post_pages

More specifically we correctly succeded in creating a page with the selected template, but when it comes to the add of the module, we are failing.

Basically the page is created without the selected module.

Is it something that can be achieved and what're we missing?

 

POST
 
{
    "name":"test-page",
    "slug":"test-page",
    "subcategory":"site_page",
    "template_path":"Amadori_October2021/templates/website-page.html",
    "widget_containers":{
        "body_flexible_column":{
            "widgets":[
                {
                    "body":{"module_id":58463735710,"widget_name":"Category Module"},
                    "name":"module_16353315331433",
                    "label":"Category Module",
                    "module_id":"58463735710",
                    "type":"module",
                    "order":"0"
                }
            ]
        }
    }
}
 
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Create Page with custom module via API

@theAndreyK , what do you think about this?

0 Upvotes