HOC SiteDokümantasyon

get_chrome

Load site header or footer. kind header is the chrome-header design surface and kind footer is chrome-footer. channel=email reads the email template header/footer instead; it has no revision history, so versions, revisionId, and publishStatus apply to the site chrome only. Default mode=summary returns {id,type,propsKeys} per block and sets truncated. mode=full returns the stored tree. propsKeys are the saved top-level keys, including group names and shell. mode=translation-gaps returns per-locale overlay gaps vs primary. blockId returns that block subtree only. A summary is not a write body. Edit with a partial content tree or ops. Ops paths use the nested schema, such as shell.anchor.anchorId. Pass includeStyle=true to attach resolved theme tokens (colours, fonts, radius, section padding, container width, breakpoints); style is omitted by default. Block props still take token paths such as colors.text.primary.

get_chrome · Grup: design

Girdiler

websiteId

zorunlu

kind

zorunlu

channel

isteğe bağlı — website (default) reads the site header/footer. email reads the email template header/footer.

versions

isteğe bağlı — List this many stored revisions of the chrome instead.

revisionId

isteğe bağlı — Return one stored revision of the chrome instead.

publishStatus

isteğe bağlı — { path, revisionId }: report whether that revision is the one served for the path.

contentLocale

isteğe bağlı

mode

isteğe bağlı — summary (default) | full | translation-gaps. summary returns ids and saved keys. full returns the stored tree.

blockId

isteğe bağlı

blockType

isteğe bağlı — Summary filter: block type.

under

isteğe bağlı — Summary filter: this block and its descendants.

depth

isteğe bağlı — Summary filter: max depth.

propsKeys

isteğe bağlı — Summary: false returns id and type only.

includeDefaults

isteğe bağlı — true or annotate. Applies to mode=full.

includeStyle

isteğe bağlı

Şema

{
  "name": "get_chrome",
  "group": "design",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "kind",
      "required": true
    },
    {
      "name": "channel",
      "required": false,
      "description": "website (default) reads the site header/footer. email reads the email template header/footer."
    },
    {
      "name": "versions",
      "required": false,
      "description": "List this many stored revisions of the chrome instead."
    },
    {
      "name": "revisionId",
      "required": false,
      "description": "Return one stored revision of the chrome instead."
    },
    {
      "name": "publishStatus",
      "required": false,
      "description": "{ path, revisionId }: report whether that revision is the one served for the path."
    },
    {
      "name": "contentLocale",
      "required": false
    },
    {
      "name": "mode",
      "required": false,
      "description": "summary (default) | full | translation-gaps. summary returns ids and saved keys. full returns the stored tree."
    },
    {
      "name": "blockId",
      "required": false
    },
    {
      "name": "blockType",
      "required": false,
      "description": "Summary filter: block type."
    },
    {
      "name": "under",
      "required": false,
      "description": "Summary filter: this block and its descendants."
    },
    {
      "name": "depth",
      "required": false,
      "description": "Summary filter: max depth."
    },
    {
      "name": "propsKeys",
      "required": false,
      "description": "Summary: false returns id and type only."
    },
    {
      "name": "includeDefaults",
      "required": false,
      "description": "true or annotate. Applies to mode=full."
    },
    {
      "name": "includeStyle",
      "required": false
    }
  ]
}

Eşlendiği uçlar

  • GET /api/v1/{locale}/{websiteId}/chrome/header → API
  • GET /api/v1/{locale}/{websiteId}/chrome/footer → API
  • GET /api/v1/{locale}/{websiteId}/email-chrome/header → API
  • GET /api/v1/{locale}/{websiteId}/email-chrome/footer → API

İlgili