How to include a widget when creating a page?


#1

The documentation says it’s possible to include a “widget” field in the body of a POST that creates a new page (http://developers.hubspot.com/docs/methods/pages/post_pages). However, it doesn’t say anything about what the structure of the widget JSON should be. As widgets are pretty complex this makes creating a new page with a widget pretty hard.


#2

Hey @Adam,

The GET pages endpoint has an example of widget JSON, I would use that as your boilerplate for requests:

http://api.hubapi.com/content/api/v2/pages/352531415?hapikey=demo

I’ll see if we can put together some more examples in the documentation.

Sebastian


#3

Hi Sebastian,

There seem to be a lot of available widgets, some of them have a lot more parameters than others. Is it necessary to provide a value for every one of the widget parameters?

Thanks