Skip to main content

ProductVariantBulkUpdateInput Input Type

Input fields to update product variants.

input ProductVariantBulkUpdateInput {
attributes: [BulkAttributeValueInput!]
sku: String
name: String
trackInventory: Boolean
weight: WeightScalar
preorder: PreorderSettingsInput @deprecated
quantityLimitPerCustomer: Int
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
stocks: ProductVariantStocksUpdateInput
channelListings: ProductVariantChannelListingUpdateInput
id: ID!
}

Fields

attributes ● [BulkAttributeValueInput!]

List of attributes specific to this variant.

sku ● String

Stock keeping unit.

name ● String

Variant name.

trackInventory ● Boolean

Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, Shop.trackInventoryByDefault will be used.

weight ● WeightScalar

Weight of the Product Variant.

quantityLimitPerCustomer ● Int

Determines maximum quantity of ProductVariant,that can be bought in a single checkout.

metadata ● [MetadataInput!]

Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

privateMetadata ● [MetadataInput!]

Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

externalReference ● String

External ID of this product variant.

stocks ● ProductVariantStocksUpdateInput

Stocks input.

channelListings ● ProductVariantChannelListingUpdateInput

Channel listings input.

id ● ID!

ID of the product variant to update.

Show deprecatedHide deprecated

preorder ● PreorderSettingsInput

DEPRECATED

Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set trackInventory to false to sell without a stock limit.

Determines if variant is in preorder.

Member Of

productVariantBulkUpdate mutation