APIs & Integrations

Not applicable

How to include a widget when creating a page?

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.

0 Upvotes
2 Replies 2
seb_fairchild
Member

How to include a widget when creating a page?

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

0 Upvotes
Not applicable

How to include a widget when creating a page?

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

0 Upvotes