Create Page with custom module via API

eugenio_rossi
Contributor | Platinum Partner

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"
                }
            ]
        }
    }
}
 
0 Upvotes
1 Reply 1
dennisedson
Community Manager

@theAndreyK , what do you think about this?

Thanks,

Dennis




Check out our Community Developer Blog
where we feature our Community driven developer podcast and how to content
0 Upvotes