ProductVariantBulkUpdateInput Input Type
Input fields to update product variants.
input ProductVariantBulkUpdateInput {
attributes: [BulkAttributeValueInput!]
sku: String
name: String
trackInventory: Boolean
weight: WeightScalar
preorder: PreorderSettingsInput @deprecated(reason: "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.")
quantityLimitPerCustomer: Int
metadata: [MetadataInput!]
privateMetadata: [MetadataInput!]
externalReference: String
stocks: ProductVariantStocksUpdateInput
channelListings: ProductVariantChannelListingUpdateInput
id: ID!
}
Fields
attributes
attributes · [BulkAttributeValueInput!]
List of attributes specific to this variant.
sku
sku · String
Stock keeping unit.
name
name · String
Variant name.
trackInventory
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
weight · WeightScalar
Weight of the Product Variant.
preorder
preorder · PreorderSettingsInput
Determines if variant is in preorder.
quantityLimitPerCustomer
quantityLimitPerCustomer · Int
Determines maximum quantity of ProductVariant,that can be bought in a single checkout.
metadata
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
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
externalReference · String
External ID of this product variant.
stocks
stocks · ProductVariantStocksUpdateInput
Stocks input.
channelListings
channelListings · ProductVariantChannelListingUpdateInput
Channel listings input.
id
id · ID!
ID of the product variant to update.
Used by
Schema: Saleor 3.23.43. Download SDL.