Skip to main content

Make Version Live

POST 

/api/v1/assets/:asset_id/versions/:version_no/activate

Make a version the live content of the asset: release a version waiting for release, or restore a previous version.

  • The current live file becomes a previous version (deleted if that takes the asset over the account's max_previous_versions).
  • A released version keeps its number; a restored one gets a new number, so history stays in order.
  • Renditions are regenerated from the new file and CDN links are refreshed in the background; the original is live immediately.
  • Metadata sent with the replace is applied to the asset.
  • Fires the asset.replaced webhook with trigger release or restore.

Requires edit access to the asset and, while release approval is on, a role in the account's release_roles (default Admin and Manager). There is no public (share link) equivalent.

Response JSON​

{"status": "OK", "data": {"asset_id": "a211ab5f351f4b398426efb59b0c72a3", "version": 5, "previous_version": 4}}

Request​

Responses​

The version is live