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_versionsper 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 byrelease_roles(default Admin and Manager), and they need edit access to the asset as well. Users listed inexempt_user_idsreplace 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).
📄️ List Versions
List an asset's versions: the live version first, then a version waiting for release, previous versions newest first, and rejected versions (kept as a record; their files are deleted).
📄️ Update Version Label
Set a version's label, note and any other keys of your own (`version_data`), and/or when a version waiting for release is needed live (`needed_by`). This is bookkeeping only: it changes neither the asset nor its metadata and fires no webhook. The label of the live version is returned as `version_data` in [Get Data](/api-reference/assets/get-data-get).
📄️ Make Version Live
Make a version the live content of the asset: **release** a version waiting for release, or **restore** a previous version.
📄️ Reject Version
Reject a version waiting for release. Its files are deleted; the version stays listed as `rejected` with the reviewer and note. The submitter is notified, and the `asset.version_rejected` webhook fires. Same permission as [Make Version Live](/api-reference/assets/make-version-live-post).
📄️ Get Version Thumbnail
The thumbnail of a non-live version. Redirects (`302`) to a private URL valid for 5 minutes; the response is never cached (`Cache-Control: private, no-store`). Add `?format=json` to receive `{'url': '...', 'expires_in': 300}` instead of the redirect — use this when your client authenticates with a header and can't follow a redirect from an image tag.
📄️ Download Version
Download the original file of a non-live version. Same behaviour as [Get Version Thumbnail](/api-reference/assets/get-version-thumbnail-get): a `302` to a private URL valid for 5 minutes, or `{'url', 'expires_in'}` with `?format=json`.