Scheduled Publishing
A release puts out definitions and record versions together, now or at a time you set. Schedule one record version for a launch, take a record out of production when a promotion ends, or put a whole campaign out at once. A release waiting for its time can be changed, paused or cancelled, and one that has gone out can be retried or rolled back.
Overview
Every change you make is a draft until a release carries it. A release names what it carries:
- Definitions, such as models, operations, hooks, context dimensions and design tokens. These go out first, in one transaction, all or nothing.
- Record versions. Each one goes out after the definitions, with its own outcome: put in, taken out, failed with a reason, or left alone with a reason.
A release with no time goes out now. A release with a time waits until then, and the workers carry it out when it comes due.
Release: "Summer campaign"
Definitions: model:banner
Record versions: page/summer v3, banner/summer v2
Goes out: 2026-06-01 09:00 UTC
Timeline:
─────────────────────────────────────────────
Now (drafts) June 1 09:00 (live)Taking a record out
A record version on a release can take its record out of production instead of putting the version in. That is how a time-boxed page works: one release puts the version in on June 1, and another takes the record out on June 30.
A takedown takes out the version it names and nothing else. If the record has put out a newer version by the time the takedown comes due, the newer one stays in production, and the release says it left the record alone and why.
Outcomes
Each record version on a release that has gone out reads one of:
| Outcome | Meaning |
|---|---|
| Done | Put in, or taken out. |
| Failed | Did not go out. The reason is on the item, and Retry sends it again. |
| Left alone | Already as the item would leave it, such as a takedown of a version the record no longer serves. |
A release reads Scheduled while it waits, Paused while it is held, Going out while its record versions are being put out, then Released (or Partly out when some failed), Failed, Cancelled or Rolled back.
In the console
Scheduling one record
- Open the record and the version you want to put out.
- Click Schedule next to the Publish button.
- Pick the date and time it goes out, in your local timezone. The console converts it to UTC.
- To take the record out again later, turn on Schedule auto-unpublish and pick that time too.
- Click Schedule.
This makes one release that puts the version out, and a second that takes the record out when you set an unpublish time. The record shows when it is scheduled, and the schedule can be changed or cancelled from the same place until it goes out.
You can also add the version to a release that is already scheduled: choose Add to a release and pick it. The version goes out with what that release carries.
The scheduled publishing screen
Open Publishing to see every release in the project. Upcoming lists what has not gone out, soonest first. History lists what has, newest first. Click a release to open it.
Making a release
- Open Publishing and click New release.
- Give it a name and, if you like, a description, such as “Spring 26 launch”.
- Set the date and time it goes out.
- Add record versions with Add items. Turn on Take out for any that should take their record out of production instead.
- Click Schedule release.
Definitions go on a release from the home page’s unpublished list, where you can release them now or at a time. A release that carries definitions shows them in its editor; they go out before its record versions.
Changing a release before it goes out
Open the release from Publishing. While it is scheduled you can change its name, its time and the record versions it carries, then Save changes. Pause holds it past its time until you Resume it, and Cancel release stops it for good. Nothing it carries goes out, and the drafts stay as they are.
After it goes out
The release editor lists how each record version went. Retry failed sends the failed ones out again, now. Roll back puts back what everything replaced: definitions go back to the copies they replaced, and each record goes back to the version it served before. A record published again since is left as it stands. A release that ran record migrations cannot be rolled back, because the records were moved into the shape it released.
Via the CLI
# What would a release carry now?
foir release status
# Release everything pending now, or at a time
foir release publish
foir release publish --at 2026-06-01T09:00:00Z
# Release named definitions
foir release publish model:collection hook:on-publish --at 2026-06-01T09:00:00Z
# List releases, scheduled ones included, newest first
foir release list
# Cancel a scheduled release, or roll one back
foir release cancel rel_abc123
foir release rollback rel_abc123foir records publish <versionId> and foir records unpublish <id> act on one record now. See foir release for every option.
Via the API
Releases are a settings verb: PublishRelease makes one now or at a time, carrying definitions by family:key or id and record versions by id (entity_kind: "record_version", with withdraw to take the record out). GetRelease reads one with each record version’s outcome, ListReleases lists them (state, record_id and with_content narrow and fill the list), and UpdateRelease, PauseRelease, ResumeRelease, CancelRelease and RetryRelease act on one. Rolling back is PublishRelease with rollback_of.
The public data API’s publish mutations are per model and act now: publish<Type>Version(versionId) and unpublish<Type>(id).
Best practices
- Put everything that has to go live together on one release. A landing page, three banners and a product collection for one campaign are one thing to schedule, pause and roll back.
- Set the takedown when you schedule the launch. A promotion that has to end is easier to get right with both times set at once.
- Use Retry on a partial release rather than making a new one. Retry sends only the failed record versions and keeps the release’s history in one place.
- Read times in UTC when you work across timezones. The console converts from your local time, but the stored time is UTC.