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

    Interface VariantSetAssetCustomTypeAction

    Sets or removes the Custom Type on an existing Asset of a Variant. The Asset to update must be specified using either assetId or assetKey.

    interface VariantSetAssetCustomTypeAction {
        action: "setAssetCustomType";
        assetId?: string;
        assetKey?: string;
        fields?: FieldContainer;
        staged?: boolean;
        type?: TypeResourceIdentifier;
    }

    Hierarchy (View Summary)

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

    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.