HOC SiteDocumentation

save_page

Omit pageId to create a route from path segments (never use [id] DSL strings). Pass an existing page id to update, or a new uuid to create with that id. An empty path segment list is the homepage. For routeKind dynamic_object the public identity segment is matched against the object type's identifierFieldKey — slugParamName only names the route param for {{bind:route.*}} / filters; liveUrl is filled from the identifier value. The response includes liveUrl, the absolute public URL, and expectedLiveBy. Public HTML can keep the previous data-request result until expectedLiveBy, about 60 seconds. Content may be a document object or a JSON string of that document. contentMode replace writes that document instead of the default sparse merge. A block saved without props.id receives one. warnings=new (default) returns only new design warnings plus preExistingWarningCount.

save_page · Group: design

Inputs

websiteId

required

pageId

optional

routeKind

optional

pathSegments

optional

objectTypeId

optional

slugParamName

optional — Create only. Names the route param for bindings (e.g. route.slug). Does not choose which object field the URL segment matches — that is always identifierFieldKey on the object type (also the admin entry identifier).

content

optional

contentMode

optional — merge (default) updates listed blocks by id and keeps the rest. replace writes this content as the whole document.

ops

optional

contentByLocale

optional — Map of locale to { content } or { ops }

displayLabel

optional — Manual sitemap/nav label; null clears (auto)

contentLocale

optional

response

optional — full | slim

warnings

optional — new (default) | all | none

dryRun

optional

previewToken

optional — From a prior dryRun; pass on a follow-up write when re-auth is needed (do not scrape from previewUrl)

Schema

{
  "name": "save_page",
  "group": "design",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "pageId",
      "required": false
    },
    {
      "name": "routeKind",
      "required": false
    },
    {
      "name": "pathSegments",
      "required": false
    },
    {
      "name": "objectTypeId",
      "required": false
    },
    {
      "name": "slugParamName",
      "required": false,
      "description": "Create only. Names the route param for bindings (e.g. route.slug). Does not choose which object field the URL segment matches — that is always identifierFieldKey on the object type (also the admin entry identifier)."
    },
    {
      "name": "content",
      "required": false
    },
    {
      "name": "contentMode",
      "required": false,
      "description": "merge (default) updates listed blocks by id and keeps the rest. replace writes this content as the whole document."
    },
    {
      "name": "ops",
      "required": false
    },
    {
      "name": "contentByLocale",
      "required": false,
      "description": "Map of locale to { content } or { ops }"
    },
    {
      "name": "displayLabel",
      "required": false,
      "description": "Manual sitemap/nav label; null clears (auto)"
    },
    {
      "name": "contentLocale",
      "required": false
    },
    {
      "name": "response",
      "required": false,
      "description": "full | slim"
    },
    {
      "name": "warnings",
      "required": false,
      "description": "new (default) | all | none"
    },
    {
      "name": "dryRun",
      "required": false
    },
    {
      "name": "previewToken",
      "required": false,
      "description": "From a prior dryRun; pass on a follow-up write when re-auth is needed (do not scrape from previewUrl)"
    }
  ]
}

Maps to

  • POST /api/v1/{locale}/{websiteId}/pages → API
  • PUT /api/v1/{locale}/{websiteId}/pages/{pageId} → API