Authoring and content plans
Use the authoring rules, content-plan examples, and Remote MCP contracts to structure CMS-editable pages.
Remote MCP Page Editing
A Super admin enables the Streamable HTTP endpoint from System Settings → MCP. Copy the displayed server URL into a compatible MCP client. The canonical HTTPS origin comes from APP_URL. The host serves the two OAuth discovery URLs under /.well-known/ on that origin. MCP is off by default.
Compatible clients discover the registration endpoint and register independently using OAuth Dynamic Client Registration. The token endpoint supports public clients and confidential clients using client_secret_post. Registration returns the supported authorization-code grant even when a client also requests a refresh grant. Clients use PKCE S256 and exact registered HTTPS or local loopback callbacks. Registration grants no CMS access. CMS sign-in and any required two-factor verification precede explicit consent for one site. Access tokens expire after one hour, after which the client needs a new authorization.
Every connection has basic pages:read. Request pages:read-content for block content, pages:read-draft-structure for draft structure, pages:read-draft-translation for translation and SEO inspection, and media:read for image search. The corresponding edits have independent grants. pages:write-draft edits headings, pages:write-content-draft edits supported block content and selects existing images, and pages:write-draft-structure edits the block structure. pages:create-draft permits draft creation. Request the relevant read grant to obtain the version needed for a write. An update migrates existing grants to equivalent access. New authorizations grant only the requested permissions plus basic page access. MCP and the personal Content API share the CMS role and site permission checks. Each interface applies its own client grant in addition to those checks.
New OAuth authorizations default to drafts created by that connection, plus one existing draft explicitly selected by the user at consent. The existing-draft selector lists up to 100 recently updated drafts from eligible sites, grouped by site; the server verifies the selected draft belongs to the selected site. A user may explicitly approve all eligible drafts on that site instead. Existing connections retain their previous site-wide draft access until expiry or revocation. The profile lists the access mode and authorized draft names for each authorization.
Restricted draft access uses a relational grant-to-page binding. It applies to draft content, structure, translation and preview reads and writes. Published-page reads still expose published copy, but hide a disallowed update draft and report draft_restricted. Writes to an existing disallowed draft return draft_access_denied, even with a fresh version. New standalone drafts and staged updates are bound in the creation transaction. Repeating a standalone creation request under another restricted connection cannot acquire its draft; reconnect and explicitly select that draft to resume. Revocation, grant expiry cleanup and page deletion remove their bindings. CMS role, site, workflow, locale, version and managed-slot checks continue to apply.
Under System Settings → MCP, the Super admin can limit which optional permissions clients can request across the installation. Disabled permissions are removed from discovery and suspended for existing connections. Unexpired, unrevoked grants can resume when their permissions are re-enabled. Profile → MCP connections lists each client's site, granted permissions, unavailable permissions, and expiry, and distinguishes pending authorizations. Revoking a client invalidates that user's pending codes and active tokens for that client across all sites. Turning MCP off suspends the whole service.
| Tool | Authoring contract |
|---|---|
| search_pages | Search the authorized site's published editorial pages in one enabled locale. Matches a literal substring in the localized name or stored path. Returns up to 20 page IDs, names, and paths per page. Follow next_page to continue. Requires pages:read. |
| find_page | Find a published editorial page by ID or by its exact stored path for an enabled locale. Use / for the home page. Returns page identity, supported heading candidates, any active staged draft and a version covering the source and draft content. |
| update_draft_heading | Provide the source page ID, source block ID, locale, new title and version returned by the read. Edits the localized title of a page-owned header, hero or content_header block inside a staged update, saves a revision and returns a private preview URL. Creates an update draft from the source if needed, with the selected heading's slot as its managed slot. |
| create_page_draft | Create an unpublished page with its first translation in the selected enabled locale. Provide a title and localized path, and optionally an active layout handle (default default). The tool seeds the layout slots, records the initial revision and returns a private preview link for the new draft. |
| get_draft_structure | Read page-owned slots, managed scope, supported add types, block IDs, parents, and sibling order. Use the new page ID for a standalone draft or the published source page ID for an update draft. Read the current version before writing. |
| edit_draft_structure | Prepare an update draft with an explicit list of page-owned slots, add a supported block with optional localized text, move a supported subtree, or reorder all siblings in a group. To move a child out of a full Split, send replacement_block_id with operation: move. The replacement must be a supported block in the destination sibling group in the same slot. Both block IDs are returned after the exchange. Use draft block IDs and the current version. Returns the new version and a private preview link. |
| get_draft_translation | Read localized page name, slug, path, SEO and Open Graph fields, pending translation changes, and the current translation version. Use a standalone draft ID or the published source page ID and an enabled site locale. |
| update_draft_translation | Edit selected fields in a standalone draft or an update draft. Add a missing locale by providing its page name. SEO fields include the list excerpt and Open Graph image. Use a permitted image from the site library. Null clears SEO fields. The tool returns a private preview and a new version. |
| update_draft_seo | Edit SEO, list excerpt and Open Graph fields only. Requires pages:write-draft-seo and the current CMS SEO permission. Read get_draft_translation to obtain a fresh version. Rejects page name, slug and path. |
| get_draft_preview | Get the private CMS preview URL for the active update draft in the chosen locale. Opening it uses the CMS browser session and its existing preview access checks. |
| get_page_content | List supported source blocks for a page and locale, with text from the published source and any matching block in a managed draft slot. Returns the source block IDs, managed slots, and a version for editing. Each block's write object lists the text fields currently writable, whether it can receive an image ID, and restriction codes. Follow next_page for more blocks. |
| update_draft_block | Patch the supplied localized text fields, assign an existing public image to a supported block, or do both. Provide the source page and block IDs and fresh version. Text support covers headings, Hero and Content Header copy, plain and rich text, Alert and CTA copy, button labels, and independent image caption and alt text. Rich text uses the CMS sanitizer. Image selection changes a shared field and is available in the CMS default locale. Returns a private preview URL. |
| find_media | Search public images by title or original filename. Results include images already used by the selected site and unused images uploaded by the consenting user. The CMS media-read permission and personal media-read capability apply to both search and assignment. |
| upload_media | Upload one file to the public Media Library. Send filename with a matching extension and content_base64 with standard padded base64 (512 KiB decoded limit). Optional title, alt_text, caption, and description are independent. Returns the media ID and file details. |
Draft creation recognizes the same normalized title, path, locale, and layout for the same user and site, including across reauthorization. An available draft returns its existing ID and private preview only when the current connection can access it. If the draft is no longer available, the retry reports that state and creates nothing. A separate request that uses an occupied localized path or slug reports a conflict. Non-default locale creation requires the translation permission.
An existing update draft retains its managed slots. Moves between two managed slots preserve the subtree and its block identities. If a published block has moved between slots, both slots must be selected together when the update draft is promoted. Structural changes apply only to page-owned drafts and preserve the existing placement, capacity, dynamic content, and human-only restrictions. An omitted parent targets the slot root. Adds and moves append to the destination group. Reordering takes the complete sibling list. A stale version rejects the write before any change is saved.
The panel, Content API, and MCP share the sibling order writer and the initializer for a new page draft, its first translation, and its layout slots. Each entry point saves the draft, its initial revision, and its own creation records within one transaction. The panel uses the default locale. The API and MCP use the requested enabled site locale. MCP and the Content API also share media site usage relationships. Each interface applies its own authorization and records its own revision context.
Content API plan validation requires the requested language to be enabled both globally and on the target site. A globally disabled language is rejected before the plan writes a page or its blocks. Shared Slot reorder requests validate the complete sibling group under the write lock and use the same order writer as page-owned slots.
When adding a child or changing its placement, a selected parent must belong to the destination page and slot. The panel preserves an existing cross-slot parent link during a content-only edit in place.
New drafts share the page identity field limits and reserved path rules. Both the slug and canonical path must be unique within the selected site and locale. The API and MCP derive the slug from the final path segment and use home for /. API plan validation reports a slug conflict under plan.page.path even when the submitted path has a different prefix.
The broader pages:write-draft-translation grant allows page identity and SEO edits through update_draft_translation. The separate pages:write-draft-seo grant enables update_draft_seo for SEO, list excerpt and Open Graph fields only. The SEO-only tool rejects name, slug and path inputs. Both tools use the existing CMS field permissions and the connection draft access restriction. A task-specific SEO authorization may explicitly select the earlier draft. It expires after one hour or on revocation; task completion does not automatically revoke it. A write response includes translation values and pending changes only if the client also has the read grant. Localized identity changes require translation permission. SEO changes require SEO permission, and changes in a non-default locale also require translation permission. The panel, Content API and MCP share page translation field rules. For MCP identity edits, an update draft keeps its private route and stores proposed public route values separately. Promotion applies only recorded translation fields after checking that the draft is still active and belongs to the source page, the published baseline still matches, the locales remain enabled, and any proposed routes are available.
On an existing translation in an update draft, the Internal Content API translation PATCH records the submitted SEO, list excerpt and Open Graph fields for promotion. The panel translation form records changes to those fields when saved on the update draft. Omitted metadata and other languages are preserved. An explicitly cleared field is recorded as null for its own language. New update drafts capture the published baseline with or without MCP enabled. Promotion requires a verified baseline for recorded translation changes. Use promote_slots: [] for translation-only promotion, which preserves the existing blocks and requires at least one recorded translation change. For combined promotion, prepare and select the managed slots. The selected slots and recorded translation changes are applied together.
Media upload requires the separate media:upload grant and the current CMS media upload permission on the consenting site. The panel, Content API and MCP share file validation and the uploader. MCP validates the extension against the detected MIME type and excludes SVG. The public library entry belongs to the consenting uploader. It can be selected under the existing media rules. Upload does not attach a file to a page. Each successful call creates one library entry, and storage is cleaned up if saving the entry fails.
New or changed Media Library text uses shared character limits in the panel, Content API and MCP. title and alt_text allow 255 characters each, and caption and description allow 2,000 each. Upload, remote fetch, metadata edits and optional file-replacement metadata reject over-limit input before writing or fetching a file. Existing longer values are preserved when omitted or resubmitted unchanged. media_library.metadata_max_lengths in the API content contract exposes the limits.
Media Library searches use literal substring matching by default in the panel and MCP find_media. Select Pattern in the panel or set search_mode: pattern in MCP to use % for zero or more characters and _ for one character. GET /webadmin/api/media retains its existing pattern behavior when search_mode is omitted. Set search_mode=literal to search for % and _ as text or search_mode=pattern to request the legacy behavior explicitly. Older saved panel views with a search term retain their original pattern matching. Search fields, media scope and permissions remain specific to each interface.
The discovery result reflects the current account and draft. write.blocked_by explains block-wide restrictions such as unmanaged_slot, conflict for a draft under review, unverified_base, or forbidden. write.media_blocked_by also covers image-specific restrictions, including media_default_locale_required. Before applying an edit, the write tool checks permissions, draft state, and version again.
A new block translation preserves fields inherited from its fallback. Locales without a block translation continue to inherit the default. A write requires a fresh source and draft version. It preserves the existing draft's managed slots and verifies that the source still matches the immutable baseline recorded when the draft was created with MCP enabled. Older drafts without this baseline and drafts under review require operator review. Shared-slot blocks, source-driven block candidates and pages containing human-only blocks are excluded from block writes. The tools expose no publishing capability.
Non-Negotiable AI Authoring Rules
- Use structured blocks. Do not store a page, section, card collection, navigation shell, form, or visual component in Trusted HTML.
htmlis a human-only escape hatch. API discovery may identify it as unavailable, but no API mutation may create, update, replace, move, reorder, clone, promote, publish, or delete an HTML block.- Do not bypass the HTML restriction through Rich Text,
<style>,<script>, event-handler attributes, iframe markup, SVG markup, encoded markup, or invented settings. - Use only fields, enum values, media roles, and child relationships documented here and confirmed by live discovery.
- Treat an admin-editable field as part of the supported authoring contract. A value recognized only by a renderer or legacy compatibility path is not a normal AI authoring field.
- If a visual region cannot be expressed with the supported contract, stop and report a capability gap. Do not silently approximate it with unrelated blocks and do not fall back to HTML.
- Site CSS may refine typography, spacing, color, borders, shadows, and responsive presentation through stable public hooks. It must not become a hidden content store or reconstruct missing semantic markup.
- Do not target database IDs, generated block IDs, sibling position selectors, or
:nth-child()for essential design behavior. Prefer block-type attributes, nativewb-*classes, page body classes, and documented settings. - Keep every visible title, paragraph, label, button, badge, image, caption, menu, and form setting editable through its native CMS field or related record.
- Validate first, apply only after explicit user approval, create drafts first, and leave live system-update actions and live visual testing to the human operator unless separately authorized.
- Treat Card as opt-in presentation, not the default way to group related copy. Use a Card only for an independently actionable, repeatable, or bounded entity such as a product, plugin, price plan, download, or form.
- Before choosing blocks, state one site-level design direction covering character, density, typography, geometry, imagery, corners, and contrast. Make the block tree and site CSS implement that direction instead of choosing each section in isolation.
- Vary page rhythm deliberately. Combine narrow, regular, wide, and full-width regions; alternate quiet copy, dominant imagery, and structured collections rather than repeating equally weighted sections.
Internal Content API clients must honour both budgets advertised by openapi.json under x-rate-limit: requests_per_minute applies per client IP and normalized bearer token (default 120), while ip_requests_per_minute is an independent IP backstop across tokens and API paths (default 300). Canonical and legacy API routes share these budgets. Exceeding either returns 429 with Retry-After; rotating a supplied token does not reset the IP budget.
An active Super admin can manage request budgets and public search query bounds under System → Settings → Security. The eight installation-wide controls cover page and search requests per minute/hour, API requests per token-IP and per IP per minute, and search query characters/words. Saved database values override installation configuration on subsequent requests without changing server files or resetting active counters. Request budgets must be integers from 1 to 1,000,000; search query bounds are 1–2,000 characters and 1–100 words. Use installation defaults removes only these overrides and preserves existing positive environment/configuration budgets; default search bounds remain 200 characters and 20 words. Site admins, editors and inactive users cannot save or restore these settings. No Internal Content API security-settings write endpoint is introduced.
An active Super admin can select Short or Full under System → Settings → Logging. The install-wide relational system.log_format setting applies to Laravel single/daily file channels; it is not per-site or an Internal Content API capability. Short records the root exception message, file/line and first two call steps; Full retains the exception chain and complete call stacks. Both omit call arguments and preserve other context, levels and rotation. Until a selection is saved, the original application formatter remains active; missing settings tables or an unavailable database also fall back to it without recursive logging. A saved CMS selection takes precedence over a Herne-managed formatter. Saving edits no application file, environment value or remote/custom channel. Long-running workers need a restart after changing the setting.
CMS browser sign-in supports optional email verification and ten single-use recovery codes per enrolled account. Profile → Manage two-factor authentication stays within the CMS panel for normal account management. Required enrollment, unverified sign-in and plugin recovery use the restricted authentication layout until verification succeeds. Setup requires the current password and a code sent synchronously through the existing CMS outgoing-mail settings; no additional Composer package or authenticator app is needed. Codes contain six random digits, expire after five minutes, allow at most five failed attempts and are consumed atomically once. Only keyed hashes are stored in relational challenge rows, bound to the account, purpose, verification address, credential/password generation and initiating session. Resends are explicit POST operations, limited to once per minute per account/purpose and three sends per minute per account, in addition to account/IP request limits. Log/array transports, including fallback destinations, are refused to keep codes out of logs. Delivery failures keep the user unverified and allow recovery-code use. Pending password sign-in expires after five minutes even after a resend; setup expires after ten minutes. Verification uses an enrolled address independently of later profile-email changes. Changing that address requires the current password plus a code to the existing address or a recovery code, followed by confirmation of the new profile address; the old address remains active until then. Replacement invalidates previous recovery codes and verified sessions. Recovery-code renewal, disabling and enrolled administrators changing enforcement require the password plus a fresh email or recovery code. Recovery codes appear only when generated. An active Super admin can require enrollment for Super admins and any built-in or custom site roles under System → Settings → Security. Any matching site assignment requires enrollment before panel access; required users cannot disable verification. Host logins, remembered sessions, session-based previews and plugin recovery do not bypass the gate. Browser writes awaiting verification redirect, or return HTTP 423 with cms_two_factor_required and a verification URL for JSON requests. Bearer-token APIs retain their independent authentication and capability model; no factor or policy management is exposed through the Internal Content API. Upgrades replace TOTP secrets with the account's current email address, rotate credential generations, discard unfinished TOTP setup and preserve enabled accounts, recovery hashes and role enforcement. Downgrading to TOTP-only binaries requires a backup restore.
Verification email customization (1.110.4): active Super admins with System access can edit the subject, greeting, introduction, expiry/security message and closing under System → Settings → Email → Verification email. English, German, Turkish, Spanish, Italian and French have separate fixed scalar settings in wbcms_system_settings; other request languages use English. Unset values use the packaged defaults for that language. Subject, greeting and closing accept at most 255 characters each; introduction and expiry/security copy accept 2,000. Only {code}, {minutes} and {app_name} placeholders are recognized; unknown/malformed placeholders and control characters are refused, and the subject/greeting/closing are single-line. Text is escaped, not executed as HTML or Markdown. The default subject starts with the six-digit code; the HTML body always keeps a separate 32px bold code region, with the code also present in the plain-text alternative. Preview opens the unsaved validated text in a new tab using synthetic code 123456, sends no email and saves nothing. Restore defaults removes overrides only for the selected language after modal confirmation. These actions preserve delivery settings, authentication policy and code lifetime; no template-editing capability is added to the Internal Content API.
From CMS 1.110.2, sign-in and shared account-security forms present one verification field accepting either a six-digit email code or one recovery code; setup confirmation remains email-code-only. Existing separate code and recovery_code submissions remain supported, and supplying both is refused. Verify and the sign-out/return action share an action row. The sign-in screen distinguishes an active, session-bound email code from an explicit send request; expired, consumed, exhausted or failed challenges are not shown as usable. Normal CMS password sign-in still sends automatically. Required accounts see setup instructions only before enrollment; eligible verified Super admins can follow a link to System → Settings → Security to change role enforcement, then disable their own verification separately. Defaults, authorization, recovery requirements and verification limits remain unchanged.
From CMS 1.110.7, System → Settings → Security presents mandatory two-factor role selection and account confirmation in one card. Enrolled operators request an email code beside the verification field without reloading or submitting the password, verification code or role selections. Delivery results appear in that section; resend controls use the server’s remaining account/purpose and account-wide cooldown. Network, session, delivery and throttle failures preserve the unsaved browser form. Saving still requires the current password and, for enrolled accounts, a valid single-use email or recovery code. Removing role enforcement leaves existing account enrollment active; users disable it separately in account settings. No enforcement default, authorization boundary, persistence schema or Internal Content API capability changes.
From CMS 1.110.8, the Security tab uses the bundled WebBlocks UI responsive row: the two-factor policy occupies five columns and request limits seven at viewport widths of at least 1200 px. Below that breakpoint the cards stack at full width in policy-first order. Cards align at the top with independent heights and form actions; request limits occupy the full row when two-factor policy controls are unavailable. This presentation change adds no custom layout CSS or JavaScript and changes no policy, request-limit default or persistence.
From CMS 1.111.2, removing an existing Super admin or site-role two-factor requirement shows a confirmation explaining that enrolled accounts still require verification at sign-in, with a link to the operator's account verification settings. The policy card also links enrolled operators to those settings. Adding or resaving unchanged requirements does not show a removal notice. Account enrollment, forced enrollment after recovery, verification and the separate disable action retain their existing security rules.
From CMS 1.106.4, enrolled active Super admins can reset another CMS-managed account from the Users form, using their own current password and a fresh email or recovery code. Self-reset, host-only targets and delegated/non-Super-admin actors are refused. Existing host system/user-management Gates remain enforced. Reset requires a non-secret reason and optionally replaces an inaccessible profile email, whose ownership remains unverified until setup. The shared ACL lock and ordered user-row locks protect post-lock authority and identity checks; reset state, code removal, remembered-token rotation and audit writes commit atomically. An audit-write failure rolls back the reset. The server-only webblocks:two-factor:reset command accepts account ID/current profile email, a required reason, optional replacement email, dry-run and explicit confirmation or --force. It works when the only Super admin is locked out, without changing passwords, account activity or role assignments. Console recovery has no CMS actor and is identified as server-command authority in access audit history. Reset actions are filterable there and record actor/target IDs, source, reason, time and before/after enrollment state; passwords and codes are not copied into the audit.
Relational wbcms_two_factor_account_states stores a per-account session version, reset time and forced-enrollment flag. Old browser sessions are rejected before route binding or mutation on their next web request, including host web routes; remembered tokens also rotate through the host provider's token-column and model-cast contract. Login events stamp the current version, and only successful email setup clears forced enrollment. Reset therefore requires enrollment even for otherwise optional roles and cannot be bypassed by changing role-enforcement settings. Revocation works independently of session storage and is not a promise to erase an already rendered page or cancel an in-flight request. Bearer-token API routes retain their independent authentication. Existing accounts are not reset or logged out merely by this additive migration. Fresh/update migrations are repeatable and preserve revocation and audit evidence on rollback.
Revision Capture and Bulk Plans
Page and Shared Slot versions remain complete JSON safety snapshots. Consecutive captures of the same owner reuse the latest content version when a canonical content hash matches; root capture time and object key order do not create a content change. Block/list order and editorial/workflow fields remain significant. Every capture still records its actor, source, event, label, reason and time in a separate capture event linked to the version. Existing historical versions are not merged or deleted by this change. Explicit pre-change safety checkpoints and restore/publication checkpoints remain distinct versions.
A content plan captures one completed page state after all its page-owned blocks and Shared Slot assignments, plus one completed state per newly created Shared Slot. Existing-page assignment plans preserve one pre-change safety checkpoint per affected page. Destructive replacement and promotion keep their pre-change checkpoint. Independent HTTP requests remain separate logical operations. Existing Shared Slot assignment targets are checked against the human-only block policy during validation and again before assignment; rejected plans create no versions or capture events. Failed transactions roll back both content and capture events.
From CMS 1.103.1, page-version API operations without an authenticated delegated user return 403 rather than a server error; system tokens do not acquire additional revision permissions.
The page-version detail API includes bounded inspection.capture_history with up to 100 recent events and a has_more flag; access uses the existing version-read permission. Historical rows retain their original revision metadata when no capture events exist. Snapshot size metadata is measured outside ordered queries. Cleanup scans fixed-size metadata batches through an ordered continuation key, preserves the age/newest-version rules, and rechecks active restore sources and the newest-version floor under owner locks before deleting each batch.
An existing page can keep its assigned Page Layout after that layout is deactivated. Panel page settings can still be saved, and PATCH /webadmin/api/pages/{page}/layout accepts the same inactive handle with an empty writes list and no revision capture. An explicit layout selection for a new page or a change to a different layout requires an active handle. The legacy dashboard alias follows the eligibility of docs in panel page settings and the layout PATCH endpoint.
PATCH /webadmin/api/blocks/{block} uses the existing default locale only when locale is omitted. An explicitly supplied unknown or malformed locale code or ID returns HTTP 422 with invalid_block_translation_locale before any block or translation write. Translation writes also require the resolved locale to be enabled for the block's site.
Content Plans and page and Shared Slot block creation validate the entire destination ancestor chain. For example, Navbar Brand needs a Navbar ancestor, even when its immediate parent is a Container. A persisted destination must stay in the same page and slot and must have a complete, acyclic chain. Staged promotion checks new placements and relocated branches, including descendants whose immediate parent did not change. Existing blocks can still receive field-only PATCH updates, and a staged copy can retain an unchanged legacy placement.
HTML Block API Policy
The target product contract is:
| Surface | html behavior |
|---|---|
| CMS admin | Human operators may create and edit reviewed Trusted HTML. |
| Public renderer | Existing published HTML blocks continue to render. |
| API discovery | Report the block as api_readable: true, api_writable: false, authoring: human_only, and explain the restriction. Do not present a writable payload example. |
| Content validate/apply | Reject every new or replacement html payload with stable code block_type_not_api_writable. |
| Incremental page/shared-slot block create | Reject html before normalization or persistence. |
| Existing block PATCH | Reject when the target block type is html, even if the submitted field would otherwise be considered safe. |
| Reorder, move, delete, slot replacement, staged update, and promotion | Reject any mutation whose affected subtree or replacement scope contains an existing HTML block. Do not delete it as a side effect. |
| API token capabilities | No capability may override the product-level restriction. |
| Read endpoints | May return the existing block for inspection according to the chosen read policy; read access must never imply write access. |
This policy is enforced in code by a single product policy class, WebBlocks\Cms\Support\BlockTypes\BlockTypeApiAuthoringPolicy. Every API surface consults it instead of repeating the rule: both block normalizers, existing-block PATCH, page and Shared Slot incremental create, page/Shared Slot reorder, subtree delete, Shared Slot clear-all, page and Shared Slot publish, draft slot replacement, staged update creation and promotion, Shared Slot assignment, and API page delete. Rejections happen before any transaction or write, return HTTP 422 with the stable code block_type_not_api_writable, and leave no partial changes. No token capability overrides it.
Canonical Content-Plan Shape
Use nested children arrays. Do not submit database relationship IDs in a content plan.
{
"type": "section",
"settings": {
"spacing": "lg"
},
"children": [
{
"type": "container",
"settings": {
"width": "lg"
},
"children": [
{
"type": "plain_text",
"translations": {
"content": "Editable copy"
}
}
]
}
]
}
Content-plan conventions:
- Put locale-owned copy directly under
translationsfor the selected plan locale. - Put URL, target, presentation variant, and other shared options under
settings. - Cookie Settings also accepts
variantdirectly on the block. If a page-owned block in a plan includes both forms,settings.variantkeeps its existing precedence. - Put direct Media Library assignment in
media_id. slide,image,hero,section,card,cta,content_header, andlink-list-itemalso accept an optional top-levelmobile_media_idreferencing an image Media Library record. Content plans and single-block creation use the same block type and Media Library checks. It is stored inblock_mediawith rolemobile_image, shared across locales, and editable through the admin media picker andPATCH /blocks/{block}. On screens up to 768 px wide it replaces the default image; an absent, deleted, or private mobile image falls back to the default. Sendnullto clear it; omitting it in PATCH preserves it. Foreground images use<picture><source media="(max-width: 768px)">; background blocks use a responsive CSS background. Use another crop of the same visual: alt text, captions, position, fit, overlays, and links stay shared. The Image block's Gallery Viewer continues to open the default full-resolution image. Gallery items, brand logos, video, and audio do not accept this field.- Put Gallery items in
gallery_itemsorgallery_media_ids. - Use only nested
children; do not sendid,parent_id,block_id,slot_type_id, orblock_type_id. - From 1.105.9, discovery and content-contract responses expose
authoring_settings_schemarevision 1. New or changed core settings must match the per-block field rules; unknown fields and invalid values return field-specific 422 errors. Existing descriptivesettings_schemapayloads remain unchanged. Read the operation-specificwritesandclosed_reasonmetadata before authoring.
Optional page.settings.source_sync metadata retains only type, source_id, source_path, source_sha256, managed_slots and last_synced_at. Public documentation identities and filenames may contain topic words such as token, secret or password. Credential assignments, authorization header values, recognized bare key/token formats, private key material, credential-bearing URLs and private .env file components are rejected without echoing their values. String limits, control-character checks and relative source-path rules remain enforced. Validation is read-only; successful creation and staged promotion retain the complete accepted source binding.
Block authoring settings schemas (1.105.9)
BlockSettingsSchema owns authoring rules independently of SettingDefinitions SQL storage types. The additive authoring_settings_schema object has revision, mode, unknown_fields, and fields. Each field exposes its type, rule, optional enum/range/text constraints, null/empty clearing semantics, omitted-field update preservation, and separate admin/create/patch write decisions. Creation still applies existing composition defaults (Columns plain, Split stack); schema discovery does not write defaults. Legacy catalog rows remain unpublished and HTML remains human-only.
Invalid supplied enums, booleans, integer ranges, text lengths, object shapes and unsupported fields fail before persistence. Values are not silently clamped or truncated. Supported numeric form strings and booleans normalize through common rules. Link List default choices index/joined/square clear the corresponding override. Declared compatibility aliases normalize Slider fade to slide and Gallery masonary to masonry. Existing domain helpers continue validating active icons, media/MIME ownership, registered applications and application-specific settings, content-source access and collection/template scope. Schema metadata alone grants no capability and performs no provider query. Contact-form submit_label, success_message and consent_label compatibility inputs in settings remain creation aliases consumed by the translation writer; PATCH uses translations instead. Media transport aliases remain creation inputs consumed by the media normalizer; block PATCH uses top-level relation fields instead. mobile_media_id is exclusively a top-level relation field and is rejected inside settings, so it cannot become an undeclared stored core setting.
Omitted settings do not trigger cleanup. Historical unknown settings, malformed old scalar values, nulls, empty values, ordered duplicate lists and nested plugin/provider extensions retain their independent relational/revision representation. An unchanged historical field may accompany an update only after exact comparison with server-owned current values. New blocks and full slot replacements cannot claim that exception. Trusted cloning, staging, imports and revision restoration retain their existing lossless paths and authorization checks.
Plugins may opt in with PluginBlockTypeDefinition::settingsSchema() or a manifest block's settings_schema, using scalar rules ['bool'], ['int', min, max], ['text', maxLength], or ['enum', values]. No method is added to the existing extension interface. A plugin without a schema remains legacy_plugin with plugin-owned settings. Invalid declarations report invalid_plugin_schema and refuse that block's schema writes without crashing other blocks. Plugin schemas cannot replace a core slug's authoring rules. Translated plugin fields remain separate locale content; optional content bindings/collections retain the existing domain validation.
webblocks:blocks:audit-settings produces a read-only JSON compatibility report (default at most 100 reported blocks, --limit up to 1000). It reports block identities, field paths and codes without values, does not repair content or resolve external providers, and exits 1 when incompatible settings exist. This is a scalar-schema report, not a live application/provider health check. Existing schema-less plugins are counted separately. Newly changed declared settings are limited to 128 fields, 256 KiB, 32 nested levels and 4096 nodes; historical unchanged data and schema-less plugin behavior remain compatible.
The additive update declares sort_order, show_approved, show_author_name, and store_submissions in typed SQL storage and rebinds applicable old documents without casting their values. Unsupported historical shapes remain typed structure nodes. Re-running the migration is safe; rollback retains these columns to avoid data loss. No content is published or rewritten to insert defaults.
Large staged content-plan writes (1.105.28)
The existing HTTP content-plan modes and publication capabilities remain unchanged. Staging and promotion reuse copied block models and known translation relationships; translation locale validation and model hooks still run. Unchanged root copies are not saved twice. Parent and collection-template references are remapped after every copy has an identity. Promotion loads and locks each selected source slot's block tree once, then deletes descendants before their parents within that page/slot.
Ordinary model writes retain the request's relational schema-discovery cache; package schema migration and database restore paths still invalidate it explicitly. New relational documents skip deletion of nonexistent children. Existing documents retain their identity and replace prior typed rows/nodes under the normal owner transaction. Complete independent revision snapshots, SQL authority, legacy value shapes, API wire formats and public rendering are preserved. No new persistence, background publication job, SSH requirement or hosting configuration is introduced. The existing API search-refresh middleware continues to coalesce index work.