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

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

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 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 ProductVariant to update.

Generated using TypeDoc