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.
GET pages endpoint has an example of widget JSON, I would use that as your boilerplate for requests:
I’ll see if we can put together some more examples in the documentation.
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?