Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

CMS · layout

2 routes. Paths are relative to https://api.intersink.com/v1.

All groups

Get the channel's layout/theme settings

GET/cms/channels/{channelId}/layout

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Replace the layout/theme (schema-validated, max 16 KB)

PUT/cms/channels/{channelId}/layout

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Request body application/json

FieldTypeDescription
headerobject
header.logostringdirectus_files id
header.stickyboolean
header.menu_idnumberMenu id (this channel) Minimum 1.
header.show_searchboolean
header.ctaobject
header.cta.labelstringAt most 40 characters.
header.cta.urlstringExample: "/contact"
header.cta.targetstringOne of: "_self", "_blank".
header.announcementobject
header.announcement.titlerequiredstringAt least 2 characters, at most 140 characters.
header.announcement.bodystringAt least 0 characters, at most 1000 characters.
header.announcement.levelstringOne of: "info", "warning", "critical".
header.announcement.ends_atstring
header.announcement.cascadebooleanAlso show on every channel below this one
footerobject
footer.columnsobject[]
footer.columns[].titlestringAt most 60 characters.
footer.columns[].menu_idnumberMenu id (this channel) Minimum 1.
footer.columns[].textstringPlain text At most 500 characters.
footer.copyrightstringAt most 200 characters.
footer.socialobject[]
footer.social[].networkstringOne of: "facebook", "instagram", "x", "twitter", "linkedin", "youtube", "tiktok", "pinterest", "whatsapp", "telegram", "github".
footer.social[].urlstringAt most 500 characters. Example: "https://instagram.com/acme"
footer.show_newsletterboolean
themeobject
theme.primary_colorstringExample: "#4F46E5"
theme.secondary_colorstringExample: "#0EA5E9"
theme.background_colorstringExample: "#FFFFFF"
theme.text_colorstringExample: "#111827"
theme.font_familystringExample: "Inter"
theme.border_radiusnumberMinimum 0, maximum 32.
theme.modestringOne of: "light", "dark", "auto".

Response

200. The payload in data is not described in the spec yet.