Cloud APIs
AssetsApi
assetVersions

assetVersions

Lists versions of a specific asset.

Parameters

NameTypeDescription
assetIdAssetIdThe ID of the asset to get asset versions for.
limit?numberThe maximum amount of games to return. Valid values range from 1 to 50 (inclusive). Defaults to 8 when not provided.
cursor?stringthe paging cursor for the previous or next page.

Example

const { data: versions } = await AssetsApi.assetVersions({ assetId: 18508967120 }); 

Example Data

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

Endpoint

GET /v1/assets/{assetId}/versions