update()
Update asset properties for specified asset
Parameters
export type AssetUpdateProps = {
properties: BasicAnyObject; // JSON including all properties that should be updated with updated values
assetId?: string;
assetIds?: string[];
collectionId?: string; // if specified, updates all assets in specified collection
}
Examples
const asset= await assetlayer.assets.update({
properties: {key1:value1, key2:value2},
assetId: 'assetId'
});
const assets = await assetlayer.assets.update({
properties: {key1:value1, key2:value2},
assetIds: ['assetId_1', 'assetId_2']
});
Return Types
type ReturnType = string | string[];
Alternatives
updateAsset()updateAssets()updateCollectionAssets()Last updated