createExpression()

Create a new expression for a given slot

Parameters

export type CreateExpressionProps = {
    slotId: string;
    expressionTypeId: string; // an expression type for the new expression (editable)
    expressionName: string; // a name for the new expression (editable)
    description?: string; // a description for the new expression (editable)
}

Examples

const expressionId = await assetlayer.slots.createExpression({
    slotId: 'slotId',
    expressionTypeId: 'expressionTypeId',
    expressionName: 'expressionName',
    description: 'description'
});

Return Types

type ReturnType = string;

Last updated