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

    Interface ProductSetAssetCustomTypeAction

    Either variantId or sku is required. The Asset to update must be specified using either assetId or assetKey.

    interface ProductSetAssetCustomTypeAction {
        action: "setAssetCustomType";
        assetId?: string;
        assetKey?: string;
        fields?: FieldContainer;
        sku?: string;
        staged?: boolean;
        type?: TypeResourceIdentifier;
        variantId?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setAssetCustomType"
    assetId?: string

    The id of the Asset to update.

    assetKey?: string

    The key of the Asset to update.

    Sets the Custom Fields fields for the Asset.

    sku?: string

    The sku of the ProductVariant to update.

    staged?: boolean

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

    Defines the Type that extends the Asset with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Asset.

    variantId?: number

    The id of the ProductVariant to update.