HOC SiteDokümantasyon

get_pages

Read pages, their revisions, or their publish status. Omit pageId to list website pages (including pages with no public route): default fields pageId, path, routed, liveUrl with truncated true; liveUrl is the absolute public URL for the primary locale, an empty path is the homepage, a dynamic path is filled from one sample entry, an unrouted page has routed false and no liveUrl; full=true adds pathsByLocale, objectTypeId, slugParamName, and displayLabel. Pass pageId to load one page: the response includes liveUrl, default mode=summary lists saved keys only after compact (truncated true), mode=full returns the stored tree, blockId with mode=full returns that block's tree, mode=detailed adds requests, mappings, and parse errors, mode=mapping returns ComponentBlock inputMappings, mode=translation-gaps returns per-locale overlay gaps. versions=N lists the page's revisions (newest first); revisionId returns one stored revision; publishStatus { path, revisionId } reports whether that revision is the one served for the path. A summary is not a write body. See design/shared-concepts/data-requests. Every response also carries style. The default is the contrast colours only (page background, surface, primary text, and inverse text), plus the dark palette when dual theme is on. includeStyle=true adds fonts, radius, section padding, the container width, and the breakpoints. Use them instead of get_theme; block props still take token paths such as colors.text.primary.

get_pages · Grup: design

Read pages, their revisions, or their publish status. Omit pageId to list website pages (including pages with no public route): default fields pageId, path, routed, liveUrl with truncated true; liveUrl is the absolute public URL for the primary locale, an empty path is the homepage, a dynamic path is filled from one sample entry, an unrouted page has routed false and no liveUrl; full=true adds pathsByLocale, objectTypeId, slugParamName, and displayLabel. Pass pageId to load one page: the response includes liveUrl, default mode=summary lists saved keys only after compact (truncated true), mode=full returns the stored tree, blockId with mode=full returns that block's tree, mode=detailed adds requests, mappings, and parse errors, mode=mapping returns ComponentBlock inputMappings, mode=translation-gaps returns per-locale overlay gaps. versions=N lists the page's revisions (newest first); revisionId returns one stored revision; publishStatus { path, revisionId } reports whether that revision is the one served for the path. A summary is not a write body. See design/shared-concepts/data-requests. Every response also carries style. The default is the contrast colours only (page background, surface, primary text, and inverse text), plus the dark palette when dual theme is on. includeStyle=true adds fonts, radius, section padding, the container width, and the breakpoints. Use them instead of get_theme; block props still take token paths such as colors.text.primary.

Girdiler

FieldRequiredNotes
websiteIdrequired
pageIdoptional
fieldsoptional
fulloptional
versionsoptionalList this many stored revisions instead.
revisionIdoptionalReturn one stored revision instead.
publishStatusoptional{ path, revisionId }: report whether that revision is served for the path.
contentLocaleoptional
modeoptionalsummary (default) | full | detailed | mapping | translation-gaps. summary returns ids and saved keys. full returns the stored tree.
blockIdoptional
blockTypeoptionalSummary filter: block type.
underoptionalSummary filter: this block and its descendants.
depthoptionalSummary filter: max depth under the root, or under under.
propsKeysoptionalSummary: false returns id and type only.
includeDefaultsoptionaltrue or annotate. Applies to mode=full.
shapeoptionalgrouped (default) | legacy-flat
previewEntryIdoptionalRun the page's list and get requests against this entry and return preview.query timings.
previewTokenoptional
routeParamsoptional
includeStyleoptional

Eşlendiği uçlar

  • GET /api/v1/{locale}/{websiteId}/pages → API
  • GET /api/v1/{locale}/{websiteId}/pages/{pageId} → API
  • POST /api/v1/{locale}/{websiteId}/design/revisions → API
  • GET /api/v1/{locale}/{websiteId}/design/publish-status → API

İlgili