Skip to content

Set up a content site

Page

Guide

Updated 13/11/2026

This is for administrators of the Content (CMS) service. When you finish, the team building the site has a key to read content, editors have just the permissions they need, and the site’s public address is correct.

Before you start

  • The Content service is connected in Service connections.
  • You hold the permission for each part below: cms.role.write (roles), cms.store_key.write (store keys), cms.settings.write (public address).
  • If the organisation has several sites, pick the right one at the top of the sidebar before changing anything.

Languages and time zone

The Console only shows the site’s default language, language list and time zone. Changing languages alters paths and links across the whole site, so it goes through the API with these conditions:

  • Call PATCH /locale-settings with locales (the whole new list) and/or default_locale (it must be in the new list). It needs permission cms.settings.write; this is a dangerous action and the Hub asks for re-authentication.
  • If-Match with the version you just read is required; a stale version returns 412.
  • Send first with dry_run: true to see the impact and warnings without writing anything.
  • Removing a language that still has published entries is blocked (409 cms_locale_in_use): unpublish or move those entries first.

The time zone is read-only, also through the API: ask the DataZen operations team to change it. PATCH /site rejects every language and time zone field.

Each entry belongs to a language group: the translations of one entry share a group, and each version’s path follows its language. The team building the site reads the language list and URL pattern from GET /store/cms/site.

Editor roles

A person’s permissions in the CMS come from the roles assigned to them, not from anything in the sign-in token.

  1. Use a built-in role (author, editor, admin) if it fits. Built-in roles cannot be edited.
  2. Otherwise create a custom role and pick its permissions. A role can be limited by content type, by language, or to “own entries only”.
  3. Assign the role to each person.

Safety rules:

  • You can grant only the permissions and scope you hold yourself.
  • The last person who manages roles cannot be removed; that action is refused.
  • A role still held by someone cannot be archived.
  • Every role change is written to the audit log.

Store keys

A store key (cmspk_…) is what the site team uses to read published content.

  1. Create a key and give it a clear label (for example the site name). It is shown once; copy it straight into the site’s secret store.
  2. Limit the scope to what is needed:
    • Features: read is the default; add preview, kit (Site Kit bundle) or forms only when the site needs them.
    • Content types: empty means every public type. A key limited by type gets responses that skip shared caches.
    • Languages: a key cannot be limited by language yet. Do not set a language scope on a key: the CMS refuses that key (401) and the site cannot read content.
    • Origins: a list of https://domain; calls from another origin are refused.
  3. Rotate keys regularly: create a new key with the same scope, switch the site to it, check the site still reads, then revoke the old one. Both keys work side by side until you revoke.
  4. Revoke at once if you suspect a leak. It takes effect on the next request (30 seconds at most); a revoked key cannot be restored.

The site team keeps the key only on the server or in an environment variable, never in browser code. See Build a site with Site Kit.

Public domain

The Console lets you edit the site name and the public address (base_url, for example https://www.your-site.example). This address builds canonical links, the sitemap and paths in every response, so:

  • Enter the exact root, with https:// and no path.
  • Until it is set, the sitemap returns a missing-address error.
  • After you change it, old canonical links can stay in the CDN until their lifetime ends (5 minutes by default).
  • A site that serves several domains: the site team adds host=<domain> when calling the sitemap so each domain gets its own URLs.

The site’s domain list is view-only. Attaching a new domain to the web server, certificate and DNS is done by the DataZen operations team or whoever hosts the site, not in the CMS.

Check your work

  • The site team runs check (see the build guide) and reports green.
  • A new editor signs in, opens the content types you assigned and sees nothing outside their scope.
  • Open GET /store/cms/site with the new key: the languages and public address are correct.

See also

Last updated: