HOC SiteDokümantasyon

save_theme

section=theme (default) updates theme tokens and/or the dual-theme flag: a partial lightTokens or darkTokens object merges into the stored map and an invalid value names the token path. section=layout updates maxContentWidthPx and breakpoints (extra keys such as paddings are kept) plus headerNavCompactUpToBreakpointId; omitting that id leaves the stored value. dryRun validates and returns before/after without saving. Requires update_header_footer.

save_theme · Grup: theme

section=theme (default) updates theme tokens and/or the dual-theme flag: a partial lightTokens or darkTokens object merges into the stored map and an invalid value names the token path. section=layout updates maxContentWidthPx and breakpoints (extra keys such as paddings are kept) plus headerNavCompactUpToBreakpointId; omitting that id leaves the stored value. dryRun validates and returns before/after without saving. Requires update_header_footer.

Girdiler

FieldRequiredNotes
websiteIdrequired
sectionoptionaltheme (default) | layout
lightTokensoptional
darkTokensoptional
dualThemeEnabledoptional
maxContentWidthPxoptional
breakpointsoptional
headerNavCompactUpToBreakpointIdoptional
dryRunoptional

Eşlendiği uçlar

  • PUT /api/v1/{locale}/{websiteId}/theme → API
  • PUT /api/v1/{locale}/{websiteId}/layout → API

İlgili