@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
    action: "setAssetCustomType"
    assetId?: string

    The id of the Asset to update.

    assetKey?: string

    The key of the Asset to update.

    Object containing the Custom Fields fields for the Asset.

    Required if at least one Custom Field is defined as required in the `fieldDefinitions` of the referenced [Type](ctp:api:type:Type).
    
    sku?: string

    The sku of the ProductVariant to update.

    staged?: boolean

    Whether 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.