Skip to main content

system.kanoa.asset.copyAsset(assetId)

Makes a copy of the asset. This will be an identical copy including all the child assets, links to modes, states, items and attributes


Parameters

assetId Integer: The asset to copy


Returns

assetId Integer The assetId of the newly created asset
msg String None if success


Example

assetId = 123
userId = 456
newAssetId, msg = system.kanoa.asset.copyAsset(assetId, userId)