Optional
Readonly
idOptional
jwtOptional
error?: unknownOptional
message?: stringOptional
params?: objectOptional
sdkRetrieves platform asset details.
await asset.fetchAssetById();
const { assetName } = asset;
Updates platform asset details.
await asset.updateAsset({
assetName: "exampleAsset",
bottomLayerURL: null,
creatorTags: { "decorations": true },
isPublic: true,
shouldUploadImages: true,
tagJson: "[{"label":"decorations","value":"decorations"}]",
topLayerURL: "https://example.topLayerURL"
});
const { assetName } = asset;
Optional
bottomOptional
shouldOptional
top
Summary
Create an instance of Asset class with a given asset id and optional attributes and session credentials.
Usage