Skip to main content

Assets - Versions

Previous and pending versions of an asset's content (content versioning).

Content versioning is an account setting (content_versioning, see Update Settings), off by default. With it off, a replace overwrites the asset as it always has. With it on:

  • Keep history — replacing an asset keeps the previous original as a previous version that can be downloaded or made live again (restored). The account keeps up to max_previous_versions per asset (default 2, at most 10); the oldest is deleted when a new version goes live.
  • Release approval — a replacement does not change the asset: it is stored as a version waiting for release and the current file keeps serving everywhere (CDN, shares, embeds, /data, search) until someone makes it live. Who may release, reject or restore is set by release_roles (default Admin and Manager), and they need edit access to the asset as well. Users listed in exempt_user_ids replace without approval. A submitter can say when a version is needed live (needed_by).

Only the live version is ever served. Non-live versions are reachable only through the endpoints below, with short-lived private links. Every asset's /data and search results carry a versions summary: {"live": 4, "count": 2, "pending": 5} (live version number, non-live versions kept, version waiting for release or null). When a version is waiting, the summary also has pending_at, pending_by and pending_needed_by.

To list everything awaiting release, search with "has_pending_version": true; sort it with pending_needed_by_ASC (soonest first) or pending_version_at_ASC (longest waiting first).