update_page_draft
Update a HubSpot page's draft without touching the published version. Edit fields and receive rejected publish/schedule attempts as feedback.
Instructions
Patch a page's DRAFT. The published version is never touched.
Args: page_id: HubSpot page ID. page_type: 'landing' or 'site'. fields: any of name, slug, htmlTitle, metaDescription, language, featuredImage, useFeaturedImage, layoutSections, widgets, headHtml, footerHtml, domain.
Any field that could publish or schedule the page is refused and
reported back in rejected_fields rather than silently dropped.
Writing layoutSections or widgets: fetch the page with include_content=True first, edit values inside the tree you got back, and send the whole tree. HubSpot accepts nothing smaller, and a tree you assembled yourself will not open in the drag-and-drop editor even when it renders correctly on the live site.
Inside a rich-text module, keep to headings, paragraphs, lists, links and emphasis. Layout HTML — grid divs, columns, inline styles, custom classes — turns the module into one block a marketer cannot edit, drops the theme's spacing and typography, and may be stripped the next time someone saves in HubSpot. Layout belongs to modules and rows, not to markup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | ||
| page_id | Yes | ||
| page_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||