expressionValues()

Upload new expression values for specified assets

Parameters

export type UpdateExpressionValuesProps = {
    expressionAttributeName: string; // specifies expression attribute the value is being uploaded for
    value: string; // b64 data of new expression value
    expressionId?: string; // specifies expresion the value is being uploaded for
    expressionName?: string; 
    assetId?: string; // if specified, the specified asset receives the new expression value
    assetIds?: string[]; // if specified, all assets in the array receive the new expression value
    collectionId?: string; // if specified, all assets in the collection receive the new expression value
}

Examples

const asset= await assetlayer.assets.expressionValues({
    expressionAttributeName: 'expressionAttributeName',
    value: 'b64 data',
    expressionId?: 'expressionId',
    assetId: 'assetId'
});
const assets = await assetlayer.assets.expressionValues({
    expressionAttributeName: 'expressionAttributeName',
    value: 'b64 data',
    expressionId?: 'expressionId',
    assetIds: ['assetId_1', 'assetId_2']
});

Return Types

type ReturnType = string | string[] | boolean;

Alternatives

updateAssetExpressionValue()updateAssetsExpressionValue()updateCollectionAssetsExpressionValue()

Last updated