add_section
Appends one or more section nodes to the end of an existing page's page array, server-side: only the new sections are sent, and the backend rejects element ids that already exist on the page. The sections are validated first.
Instructions
Appends one or more section nodes to the end of an existing page's page array, server-side: only the new sections are sent, and the backend rejects element ids that already exist on the page. The sections are validated first. dry_run defaults to true: it validates, caches the payload under a draft_id and previews the request; dry_run:false appends. A validation failure also returns a draft_id, which patch_page accepts for element-level fixes. Section-level saves cannot change page settings, so font weights that need new font links are reported in font_weights_notice. Requires Webcake credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Default TRUE — validate the section(s) and preview the request without writing. Set false to actually append. | |
| page_id | Yes | The page id to append to (from create_page or list_pages; must be owned by the account). | |
| draft_id | No | A draft id returned by a previous add_section call (dry_run=true or validation failure). Loads the cached section payload, so the sections are not re-sent. | |
| sections | No | One section node, or an array of section nodes, appended to the end of `page` (object/array or JSON string). Each is a normal section element { id, type:'section', responsive, children, … } with a unique id; sections stack vertically after the existing ones. Nodes may be sparse — omitted properties/runtime/empty events and children/per-breakpoint config are filled from factory defaults. Required unless draft_id is supplied. |