Skip to main content
PATCH
Update website-level settings

Authorizations

Authorization
string
header
required

Organization-scoped bearer credential: a customer API key (1club_sk_live_...) or an MCP OAuth access token.

Query Parameters

siteId
integer

Body

application/json
name
string
themeSupport
enum<string>

both lets a visitor switch; light/dark fixes the theme.

Available options:
both,
light,
dark
defaultTheme
enum<string>

Only meaningful when themeSupport is both.

Available options:
light,
dark,
system
seoSettings
object

Site-wide SEO defaults, replacing the whole object - read the current one from GET /website first. Every field is a fallback a page can override.

buttonStyle
object

How buttons look across the WHOLE website. Site-wide on purpose: a section chooses each button's emphasis (primary/secondary/outline/ghost), but a site with pill buttons in the hero and square ones in a CTA reads as broken. Unlike seoSettings this MERGES field by field, so setting the shape leaves the casing alone. An all-default style is stored as nothing, and the renderer falls back to pill.

cornerRadius
enum<string> | null

How round every corner on the site is - section cards, media frames, form controls, and buttons on sharp/round. Defaults to soft, which is what every site rendered before this existed. null returns to the default.

Available options:
sharp,
soft,
round
spacing
enum<string> | null

The site's baseline vertical rhythm: the gap BETWEEN sections and the default padding inside one. A section's own paddingY overrides the padding half; the gap is the part no per-section control reaches. null returns to the default.

Available options:
compact,
default,
airy
typeScale
enum<string> | null

How large headings run relative to body text. A multiplier on the heading ladder rather than a set of sizes. null returns to the default.

Available options:
compact,
default,
editorial
clubId
integer | null

Club this website represents. When set, the header and footer use that club's logo instead of the organization's. null clears the binding. Takes effect immediately, like name — logos are branding assets rather than a published token.

supportedLocales
enum<string>[]

Locales this organization serves, in display order. Organization-level, requires organization:write, and applies immediately - see the endpoint description. Must contain defaultLocale.

Available options:
en,
es,
fr,
de,
bg,
cs
defaultLocale
enum<string>

Locale served at the site root. Organization-level, requires organization:write.

Available options:
en,
es,
fr,
de,
bg,
cs

Response

The updated website

A website belonging to the organization. Page content, layout and theme tokens describe the draft. url, published, activeReleaseVersion and lastPublishedAt describe what the public is currently being served. name and clubId are live row fields — they take effect without a publish.

id
integer
name
string
slug
string

Platform host label - the site answers on <slug>.1club.me.

domain
string | null

Custom domain, when one is pointed at this site.

isDefault
boolean

True for the site an organization-wide caller means by "the website". Exactly one per organization.

isActive
boolean

False means the site is switched off and serves nothing publicly, whatever the draft contains.

clubId
integer | null

Club this website represents. When set, the header and footer use that club's logo instead of the organization's. Live, like name.

url
string

Public URL - the custom domain when set, else the platform host.

previewUrl
string

The same site rendered from the unpublished draft - the link to review edits before publishing. Carries a signed grant that expires 24 hours after this response was generated; read the website again for a fresh one. Anyone holding the link can view the draft, so it is shareable without a login but should be treated as sensitive.

published
boolean

Whether the site has ever been published. False means nothing is publicly reachable yet.

activeReleaseVersion
integer | null
lastPublishedAt
string<date-time> | null
themeSupport
enum<string> | null
Available options:
both,
light,
dark
defaultTheme
enum<string> | null
Available options:
light,
dark,
system
supportedLocales
string[] | null

Locales the site serves, which is what its hreflang alternates and sitemap.xml advertise. Organization-level - see PATCH /v1/platform/website.

defaultLocale
string | null

Locale served at the site root. Organization-level.

seoSettings
object

Site-wide SEO defaults. Each field is a fallback a page can override.

pages
object[]

Present when fetching one website; omitted from the site list.

layout
object

Header and footer, rendered on every page.

hasCustomCss
boolean
updatedAt
string<date-time>