TenanciTenanci

Help centerBranding & TailorKit

Publish, schedule and roll back in TailorKit

Draft and publish, scheduling, version history, rules per page, tab and route, screen sizes and diagnosing changes that can't find their element.

Available on: Growth, ScaleOpen in the dashboard

Nothing you do in the editor reaches visitors until you publish. This article covers the path from draft to live, how to schedule a brand switch, how to roll back a version in one click and how to keep your changes working when the app changes.

Draft and publish

  1. Edit freely: the editor keeps your changes and shows Unsaved changes.
  2. Click Save draft (or Ctrl+S) to save without going live. The draft stays saved so you or a teammate can pick it up later.
  3. Click Publish. The editor saves whatever is pending and publishes: "Published! Version N is live."

Each publication becomes a new version. The previous version moves to the history and can be restored.

Schedule a publication

Ideal for switching the brand on a set date (a launch, Black Friday, a customer's rebrand):

  1. Click the arrow next to Publish, then Schedule publication….
  2. Under Date and time, pick the moment (from 1 minute to 1 year ahead) and click Schedule.
  3. The editor shows a "Publication scheduled for …" bar. To call it off, use Cancel schedule.

History and rolling back

  1. Click Version history (the clock in the bar, or in the arrow next to Publish).
  2. The list shows each published version with its date; the one that's live has the Live badge.
  3. Click Restore on the version you want and confirm.

The restored version is published as a new version and the current draft is discarded. That way you can also go forward to a newer version later.

Rules per page, tab and route

Every change has a reach, chosen under Apply changes to in the Element tab:

  • Only this page, Similar pages (/courses/*) and The whole site apply together: on a course page, the whole-site changes, the /courses/* changes and the page's own changes all apply. When they conflict, the most specific one (the page's) wins.
  • Apps that switch screens without changing the path (/dashboard?tab=profile, /#/settings) show the option Only when the URL has ?tab=profile (or #/settings). Tick it so the change only applies on that "screen". The option covers every change to the element within that reach. Campaign parameters (utm_*, fbclid, gclid…) are left out of the condition.

In the Changes tab, each group shows its reach (Whole site, Similar pages: …, Page …) and badges for the URL condition, devices and All similar.

Screen sizes

Tablet and Mobile styles apply up to a screen width. The default is mobile up to 640 px and tablet up to 1024 px. If your app uses different breakpoints, adjust them so your changes match the app's layout:

  1. Go to the Advanced tab, Screen sizes section.
  2. Fill in Mobile up to and Tablet up to (in px) and click Apply. On Bubble, use the same values as the Responsive tab.
  3. Default (640/1024) restores the factory values.

Mobile must be between 240 and 1600 px, tablet between 320 and 2560 px, and mobile smaller than tablet. The editor's preview uses these sizes too.

Change health and diagnosis

When the app changes (a renamed element, a redesigned screen), a change may no longer find its element. It gets skipped, never applied in the wrong place, and the editor flags it in the Changes tab:

  • Not found on this page: seen right now, in the preview;
  • Not found in N visits: seen by real visitors on the published version;
  • the reason, right below: no similar element, the closest one scoring below the threshold, or more than one equally similar element.

To fix it:

  1. Open the Changes tab on This page.
  2. If the editor found a good candidate, click Fix on the change, or Fix N in the notice at the top for every change on the page.
  3. Otherwise, click Repoint, then the right element in the preview.
  4. Publish.

Also in the Changes tab: each item's switch turns the change off without deleting it, Show on page selects the element, the trash icon removes it, and All pages lists everything on the domain (with Open this page to jump there).

Through the API

The API flow is the same as the editor's: save the draft, publish (or schedule) and, if needed, roll back.

curl -X PUT https://api.tenanci.com/v2/domains/dom_4h7n1q/tailorkit/draft \
  -H "Authorization: Bearer tnc_live_xxxxxxxx_xxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{"document": { "version": 2, "theme": { ... }, "globalCss": "", "replacements": [], "pages": {} }}'
# → { "version": 8 }
Operation Endpoint
read draft, live version and history GET /domains/:id/tailorkit
save draft PUT /domains/:id/tailorkit/draft
publish POST /domains/:id/tailorkit/publish
schedule / cancel POST and DELETE /domains/:id/tailorkit/schedule
roll back POST /domains/:id/tailorkit/rollback/:version
changes visitors couldn't match GET /domains/:id/analytics/tailorkit

Common errors: 400 invalid_rules (the document failed validation; details says where), 400 rules_too_large (over 1 MB), 400 no_draft (no draft to publish or schedule), 400 invalid_schedule (date outside 1 minute to 365 days) and 403 feature_not_in_plan (plan without TailorKit).