@gradientedge/commercetools-utils
    Preparing search index...

    Interface ProductTailoringSetAssetCustomFieldAction

    Either variantId or sku is required to reference a ProductVariant that exists. The Asset to update must be specified using either assetId or assetKey.

    interface ProductTailoringSetAssetCustomFieldAction {
        action: "setAssetCustomField";
        assetId?: string;
        assetKey?: string;
        name: string;
        sku?: string;
        staged?: boolean;
        value?: any;
        variantId?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setAssetCustomField"
    assetId?: string

    The id of the Asset to update.

    assetKey?: string

    The key of the Asset to update.

    name: string

    Name of the Custom Field.

    sku?: string

    The sku of the tailored ProductVariant to update.

    staged?: boolean

    If true, only the staged Asset is updated. If false, both the current and staged Asset is updated.

    value?: any

    If value is absent or null, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. If value is provided, it is set for the field defined by name.

    variantId?: number

    The id of the tailored ProductVariant to update.