Cloud APIs
AssetsApi
rollbackAssetVersion

rollbackAssetVersion

Rolls back a specific version of an asset

Parameters

NameTypeDescription
assetIdAssetIdThe ID of the asset to rollback.
versionVersionThe version of the asset to rollback.

Example

const { data: rolledBackAssetInfo } = await AssetsApi.rollbackAssetVersion({ assetId: 18494719558, version: 2 }); 

Example Data

{
  path: "assets/18494719558/versions/2",
  creationContext: { creator: { userId: "45348281" } },
  moderationResult: { moderationState: "Approved" },
} 

Endpoint

POST /v1/assets/{assetId}/versions/{version}:rollback