Every section type this site can use, with its layouts (variants), fields and blocks. Read this before adding sections. Types starting with data: show live data from the site (schedule, events, prices) and stay up to date by themselves. Field types: text (one line), md (light markdown), plain (text as typed, blank lines between paragraphs), lines (an array of one-line strings), buttons (an array of { label, href, style: "primary" or "secondary" }), link, image ({ src, alt }), select, bool, youtube (a YouTube link or the video's 11-character id; kept as the id), videofile (one of the site's own uploaded videos: pass the whole object list_videos gives, { src, w, h, seconds, captions, speech, poster }). The video section shows a video that loads only when a visitor presses play: either the site's own uploaded video (file, from list_videos; it plays from the site's own address with its captions) or a YouTube video (video: its link). Set one, not both. Give it a title (the play button reads "Play video: <title>") and, if you like, a poster picture from list_pictures (an uploaded video has its own poster frame; YouTube's own thumbnails are never used).
The site's design: color schemes (with their contrast), fonts, type scale, corners, button, card and photo styles, the personalities to start from, and any warning that the site looks too much like another one. For owners, managers and developers it also has the site's custom CSS (draft.customCss) and css: the rules CSS must follow and how a page's own CSS is kept to that page.
Parameter
Type
Description
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
The site's picture library: each picture's address (src), alt text and size. Use these addresses for image fields (with their alt text, or better words for that spot); new pictures are uploaded by the owner under Pictures in the back office.
The site's builder pages with their kind (page, or the site's own kinds such as article) and status (draft only, published, or published with unpublished changes). kind lists only that kind.
Parameter
Type
Description
kind
string
Only pages of this kind ("page", "article", ...).
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Page builder: new page Changesdry_runWeb developer
A new page as a draft, from a template or from your own sections. Templates: blank, landing, about, coming-soon (a photo with opening news and a sign-up button), camp, parties, hiring; they use the site's own photos and live sections, and the words to change are in [square brackets] (check_page lists them). kind makes another kind of page the site has (list_pages names them; an article lives at /articles/<address> and starts from the site's article sections). Not visible to visitors until published.
Parameter
Type
Description
kind
string
The kind of page: "page" (the default) or one list_pages names, such as "article".
slugrequired
string
Its address without the slash ("summer-camps"); "" is the home page.
titlerequired
string
The page's title (its heading and the menu label unless nav.label says otherwise)
Your own sections instead of a template: [{ type, variant, scheme, settings, blocks }]
sections[].type
string
A section type from list_section_types (e.g. hero, cards, faq, or data:schedule).
sections[].variant
string
The layout, one of the type's variants. Leave out for the first.
sections[].scheme
string
A color scheme name from get_design_system (e.g. light, dark, accent).
sections[].hidden
boolean
Keep the section on the page but don't show it.
sections[].show
string: all | phone | computer
Where visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere.
sections[].overlay
string: none | light | medium | dark | lighten
The shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice.
sections[].divider
object
Shapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them.
sections[].anchor
string
The section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it.
sections[].ornament
boolean
A small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections.
sections[].lift
boolean
The section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section.
sections[].still
boolean
The photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion.
sections[].photo
object
A photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it.
sections[].settings
object
The section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people).
sections[].blocks
array of object
The section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given.
seo
object
Search results: { title, description }
seo.title
string
The title in search results (about 60 characters)
seo.description
string
The description in search results (about 155 characters)
nav
object
The page's menu entry: { show, label, order }
nav.show
boolean
true adds the page to the website's menu
nav.label
string
The menu's words for the page; leave out to use the title
nav.order
integer
Where it goes in the menu, from 1 (leftmost)
dry_run
boolean
Check the change and show the result without saving it.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Change a page's title, address, search title and description, menu entry, or its own CSS (draft). css is CSS for this page only (owners, managers and developers; up to 20,000 characters): every selector is kept to the page for you, so `.pb-t-hero h1 { letter-spacing: .04em }` becomes `[data-pb-page="/camps"] .pb-t-hero h1 {...}`, and `&` or `:scope` means the page itself. Style the page's classes: .pb-sec (each section, with id = its section id), .pb-t-<type>, .pb-v-<layout>, .pb-s-<scheme>, .pb-btn-1/.pb-btn-2, .pb-card, and the design's variables (var(--pb-accent), var(--pb-text), var(--pb-font-h), ...). Rules: no @import, no < or backslashes, url() only for this site's /media/ and /fonts/ files. css replaces the page's CSS; "" removes it. Check the preview on a phone and a computer before publishing.
Parameter
Type
Description
pagerequired
string
The page: its address ("/camps", "/" for home) or id.
title
string
The page's new title
slug
string
The page's address after the domain, e.g. summer-camp for /summer-camp
seo
object
Search results: { title, description }; send only what changes
nav
object
The menu entry: { show, label, order }; send only what changes
css
string
This page's own CSS (replaces what it has; "" removes it). Kept to this page automatically.
dry_run
boolean
Check the change and show the result without saving it.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Page builder: add a section Changesdry_runWeb developer
Add a section to a page's draft, at the end or before/after another section.
Parameter
Type
Description
pagerequired
string
The page: its address ("/camps", "/" for home) or id.
typerequired
string
A section type from list_section_types (e.g. hero, cards, faq, or data:schedule).
variant
string
The layout, one of the type's variants. Leave out for the first.
scheme
string
A color scheme name from get_design_system (e.g. light, dark, accent).
hidden
boolean
Keep the section on the page but don't show it.
show
string: all | phone | computer
Where visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere.
overlay
string: none | light | medium | dark | lighten
The shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice.
divider
object
Shapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them.
The shape on the section's bottom edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge
anchor
string
The section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it.
ornament
boolean
A small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections.
lift
boolean
The section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section.
still
boolean
The photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion.
photo
object
A photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it.
settings
object
The section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people).
blocks
array of object
The section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given.
before
string
Put it before this section id.
after
string
Put it after this section id.
index
integer
Or its position, 0 = first.
dry_run
boolean
Check the change and show the result without saving it.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Page builder: change a section Changesdry_runWeb developer
Change one section: its layout, color scheme, hidden state, where it shows (show: all, phone or computer), the shade over its photo (overlay), the shapes on its edges (divider), a photo behind it (photo), some of its fields (others stay), or all of its blocks.
Parameter
Type
Description
pagerequired
string
The page: its address ("/camps", "/" for home) or id.
idrequired
string
The section id from get_page.
type
string
A section type from list_section_types (e.g. hero, cards, faq, or data:schedule).
variant
string
The layout, one of the type's variants. Leave out for the first.
scheme
string
A color scheme name from get_design_system (e.g. light, dark, accent).
hidden
boolean
Keep the section on the page but don't show it.
show
string: all | phone | computer
Where visitors see it: "all" (everywhere, the default), "phone" (phones only, narrower than 700 px) or "computer" (computers and tablets only). For a long table or a video that suits one size; the first section always shows everywhere.
overlay
string: none | light | medium | dark | lighten
The shade over a photo behind the words (a Hero in the full layout): medium is the default; dark calms a busy photo; light and none show more of the photo with the words on a dark panel; lighten fades the photo to white with dark words. The words stay readable (WCAG AA) with every choice.
divider
object
Shapes on the section's top and bottom edges (like a WordPress theme's section dividers), drawn in the colour of the section next to it: { bottom: "mountains" }. Leave out a side for a straight edge; {} or "none" removes them.
The shape on the section's bottom edge: one of the page builder's dividers (mountains, wave, curve and the rest), or none for a straight edge
anchor
string
The section's anchor, so a button or a Jump Links section can take visitors straight to it: a word or words joined by dashes (parties, open-gym), linked as #parties. "" removes it.
ornament
boolean
A small accent-coloured ornament (two short lines and a slash) above the section's words, like many themes put between sections.
lift
boolean
The section moves up over the bottom of the section above it, like cards whose photos overlap a dark hero band (WordPress themes do this under a page-top banner). Not for the first section.
still
boolean
The photo behind the section (a background photo, or a Hero's Banner or Full Photo picture) stays put while the page scrolls over it. Off for visitors who ask for reduced motion.
photo
object
A photo behind the section's words, any section but a Hero in the full or banner layout (they use their own picture): { src } from the site's library. The words turn white over a shade (overlay sets how dark; lighten fades the photo to white with dark words); null removes it.
settings
object
The section's fields. Text fields take plain text with **bold**, *italic*, [words](/link) and "- " lists. Pictures are { src, alt, focus }: focus "x% y%" is the spot kept in view when the picture is cropped (a face; "50% 30%" by default for people).
blocks
array of object
The section's repeatable items: [{ settings: {...} }], in order. Replaces all blocks when given.
dry_run
boolean
Check the change and show the result without saving it.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Review a page's draft before publishing, without changing anything: every rule (fields, links, alt text, headings) plus the review's findings, each with severity (error or warning), the section it's in, the problem in plain words and the exact fix: missing or poor alt text, heading order, empty or long headings, vague link words ("click here"), buttons that go nowhere, color contrast, pictures too small for their spot, very long words, and the page's CSS (removed focus outlines, text under 12px, fixed widths wider than a phone, hidden menus, motion without a reduced-motion guard, unreadable color pairs). Fix the errors (and ideally the warnings) with the other tools, then check again. The editor's Review also checks the layout at phone and computer sizes.
Parameter
Type
Description
pagerequired
string
The page: its address ("/camps", "/" for home) or id.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
A private link to the page's draft in the draft design, good for 24 hours, with the review's findings (see check_page). Share it with the person to look at before publishing (check it on a phone too).
Parameter
Type
Description
pagerequired
string
The page: its address ("/camps", "/" for home) or id.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Page builder: change the design Changesdry_runWeb developer
Change the site's design in the draft: start from a personality and/or change tokens (schemes, fonts, scale, base, headingWeight, headingCase, radius, radiusPx (an exact corner size in pixels), buttons, cards, photos, dividers, spacing, width, motion; a scheme may also have the site's own roles listed by get_design_system). It affects every page once published (on some sites the whole site, not only builder pages). Answers with contrast problems (the change is refused until fixed) and warnings if the site would look too much like another. custom_css is the site's own CSS for what the tokens can't do (owners, managers and developers; up to 60,000 characters): it applies to every page after the design, replaces the CSS the site has ("" removes it; leave it out to keep it), and follows the rules in get_design_system's css (no @import, no < or backslashes, url() only for this site's /media/ and /fonts/ files). For one page only, use update_page's css.
Parameter
Type
Description
personality
string
Start from a personality: its key or name from get_design_system (personalities)
changes
object
Design tokens to change, by name from get_design_system, e.g. { "radius": "round", "headingCase": "upper" }
custom_css
string
The site's whole custom CSS (replaces it; "" removes it). Read the current one in get_design_system's draft.customCss first and change that.
dry_run
boolean
Check the change and show the result without saving it.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Page builder: publish a page ChangesconfirmWeb developer
Put a page's draft on the live site. Only those who publish can (owners and managers); ask the person first and pass confirm: true after they agree. The review (check_page) runs first. If it finds problems the page isn't published and you get findings: blocked: true means this person's role can't publish while errors remain, so fix every error with the other tools and try again; needsAnyway: true means you may fix them, or (only if the person agrees) call again with anyway: true and a reason in a few words, which is kept with the version.
Parameter
Type
Description
pagerequired
string
The page: its address ("/camps", "/" for home) or id.
note
string
A short note on what changed, kept in the page's version history
confirm
boolean
Must be true, after the owner has said yes
anyway
boolean
Publish over the review's findings (the person agreed). Needs reason.
reason
string
Why it's published anyway, a few words.
version
string
Work inside this site version (its id from list_site_versions or create_site_version). Leave out (or "live") for the live site's drafts.
Page builder: publish the design ChangesconfirmWeb developer
Put the draft design live on every page. Owners and managers only; ask first and pass confirm: true. The review checks the design's colors and the site's custom CSS first; it answers like publish_page (blocked, or needsAnyway with anyway and reason).
Parameter
Type
Description
note
string
A short note on what changed, kept in the design's version history
confirm
boolean
Must be true, after the owner has said yes
anyway
boolean
true publishes even though the review found problems (owners only, after they agree); give the reason
reason
string
Why it goes live anyway, in the owner's words; kept in History with the change
The site's versions, like Shopify's theme library: the one that's live, the ones being worked on (each a copy of the whole site: design, site and page CSS, every page, and the site's menu and logo), and the library of versions that were live before (ready to restore). Each has its id, name and preview link.
Page builder: new site version ChangesWeb developer
Start a new version: a copy of the live site (or of another version: from) to change without touching the live site. Then pass its id as `version` to get_page, update_section, set_design and the other page and design tools; nothing changes for visitors until publish_site_version. Answers with its preview link (14 days) to share.
Parameter
Type
Description
namerequired
string
A short name, like "Spring refresh".
note
string
What this version is for, shown in the version library, e.g. Fall redesign
from
string
Copy this version id instead of the live site (a library version, to start from an old look).
Page builder: version preview link ChangesWeb developer
The version's preview link: anyone with it sees the whole site as that version (every page, the design, the menu and logo) for 14 days, with a bar saying it's a preview. action: create (or give the current one), renew (a fresh 14 days; the old link stops), revoke (turn it off).
Parameter
Type
Description
versionrequired
string
The version's id, from list_site_versions
action
string: create | renew | revoke
create (or show the current link), renew (a fresh 14 days) or revoke (the link stops working)
Page builder: publish a site version ChangesconfirmWeb developer
Put a whole version live at once: its design and every page (pages not in it come off the site; their drafts are kept), and the site's menu and logo. The version that was live goes into the library. Only those who publish can; ask the person first and pass confirm: true. The review runs on every page first and answers like publish_page (blocked: fix the errors in the version and try again; needsAnyway: fix, or with the person's agreement call again with anyway: true and a reason).
Parameter
Type
Description
versionrequired
string
The version's id, from list_site_versions
confirm
boolean
Must be true, after the owner has said yes
anyway
boolean
true publishes even though the review found problems (owners only, after they agree); give the reason
reason
string
Why it goes live anyway, in the owner's words; kept in History with the change
note
string
A short note on what this version changes, kept in the library
Page builder: restore a site version ChangesconfirmWeb developer
Put a version from the library back live (one step, the same as publishing it again; the review runs and owners can publish anyway with a reason). Ask first and pass confirm: true.
Parameter
Type
Description
versionrequired
string
The library version's id, from list_site_versions
confirm
boolean
Must be true, after the owner has said yes
anyway
boolean
true publishes even though the review found problems (owners only, after they agree); give the reason
reason
string
Why it goes live anyway, in the owner's words; kept in History with the change
See or change the layout of the Coaches page (how the coach cards are arranged). Without layout: the layouts, the one live now, the one in the draft and the one suggested for this team (from how many coaches there are and how many have a bio and photos). With layout: saves it into the Coaches page's draft and gives a preview link; it goes live only with publish_page, so show the person the preview and ask before publishing.
Parameter
Type
Description
layout
string: featured | pair | lead | pair-lead | grid | photos | list | suggested
The layout: featured (one big card, then a grid), pair (two big cards side by side, then a grid), lead (two big cards one above the other, then a grid), pair-lead (two side by side, a third big card, then a grid), grid (every coach the same size), photos (every coach a big photo card, two to a row), list (a compact list), or suggested. Leave out to see the choices and the suggestion first.
Turn holidays on or off and pick the look for any holiday (owners only). Each holiday shows by itself on its dates. Send only what changes; suggest the preview links from get_holiday_decorations first.
Parameter
Type
Description
turn_on
array of string
Holiday keys to decorate for (from get_holiday_decorations)
turn_off
array of string
Holiday keys to stop decorating for
looks
object
Holiday key -> look key, e.g. { "christmas": "wonderland" }
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Take a page off the website Changesdry_runconfirmWeb developer
Take a published Page Builder page off the website (owners and managers), the same as Take Down in Website > Pages. The draft and every version are kept, so publish_page puts it back. A built-in page (Classes, Pricing...) taken down shows the site's own version of that page again. Needs the owner's yes and confirm: true.
Parameter
Type
Description
pagerequired
string
The page's address (like /winter-camp) or its id from list_pages
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Start the design from a personality Changesdry_runWeb developer
Start the website's draft design from one of the ready-made personalities (owners and managers), the same as Website > Pages > Design > Start From a Personality: colors, corners, buttons and cards change; the site's fonts, its own CSS and NinjaHQ's part stay. Only the draft changes: check a preview, then publish_design puts it live after the owner says yes. get_design_system lists the personalities.
Parameter
Type
Description
personalityrequired
string
A personality's key or name from get_design_system (personalities)
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
The videos the gym uploaded to its website (at most 10, up to 2 minutes each), newest first: video_id, title, length, captions (speech: "none" no talking, "open" words already on the video, "file" a caption file), and the pages that use it. To show one in a Video section, pass its whole "file" object as the section's file setting (add_section or update_section, type "video") and leave the YouTube link (video) empty. New videos are added in the page editor: Website > Pages, edit a page, a Video section, Upload a Video, Choose a Video, Upload a New One (a phone or computer; the video is made smaller there first).
Rename, re-caption or delete a website video Changesconfirm
Change one of the website's own videos (list_videos gives the ids). rename: a new title for the library (pages keep their section's own title). captions: say whether there is talking and, if so, give the captions as .srt or .vtt text. delete: removes the video for good, only after the owner says yes (confirm: true), and only when no page uses it (take it out of those Video sections first).
Parameter
Type
Description
video_idrequired
string
The video's id, from list_videos
actionrequired
string: rename | captions | delete
rename, captions (add or change them) or delete
title
string
rename: the new title (the play button says it)
speech
string: none | open | file
captions: none = no talking, open = the words are already on the video, file = captions given in caption_text
caption_text
string
captions with speech file: the text of an .srt or .vtt caption file (times and words)
confirm
boolean
delete: must be true, after the owner has said yes