# ProductVariantSetInput - admin-graphql - INPUT_OBJECT Version: 2024-10 ## Description The input fields for specifying a product variant to create or update. ### Access Scopes ## Fields * [barcode](/docs/api/admin-graphql/2024-10/scalars/String): String - The value of the barcode associated with the product. * [compareAtPrice](/docs/api/admin-graphql/2024-10/scalars/Money): Money - The compare-at price of the variant. * [file](/docs/api/admin-graphql/2024-10/input-objects/FileSetInput): FileSetInput - The file to associate with the variant. Any file specified here must also be specified in the `files` input for the product. * [id](/docs/api/admin-graphql/2024-10/scalars/ID): ID - Specifies the product variant to update or create a new variant if absent. * [inventoryPolicy](/docs/api/admin-graphql/2024-10/enums/ProductVariantInventoryPolicy): ProductVariantInventoryPolicy - Whether customers are allowed to place an order for the product variant when it's out of stock. * [inventoryQuantities](/docs/api/admin-graphql/2024-10/input-objects/ProductSetInventoryInput): ProductSetInventoryInput - The inventory quantities at each location where the variant is stocked. If you're updating an existing variant, then you can only update the quantities at locations where the variant is already stocked. * [metafields](/docs/api/admin-graphql/2024-10/input-objects/MetafieldInput): MetafieldInput - Additional customizable information about the product variant. * [optionValues](/docs/api/admin-graphql/2024-10/input-objects/VariantOptionValueInput): VariantOptionValueInput! - The custom properties that a shop owner uses to define product variants. * [position](/docs/api/admin-graphql/2024-10/scalars/Int): Int - The order of the product variant in the list of product variants. The first position in the list is 1. * [price](/docs/api/admin-graphql/2024-10/scalars/Money): Money - The price of the variant. * [requiresComponents](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean - Whether a product variant requires components. The default value is `false`. If `true`, then the product variant can only be purchased as a parent bundle with components and it will be omitted from channels that don't support bundles. * [sku](/docs/api/admin-graphql/2024-10/scalars/String): String - The SKU for the variant. Case-sensitive string. * [taxCode](/docs/api/admin-graphql/2024-10/scalars/String): String - The tax code associated with the variant. * [taxable](/docs/api/admin-graphql/2024-10/scalars/Boolean): Boolean - Whether the variant is taxable. ## Input objects with this input object * [ProductSetInput](/docs/api/admin-graphql/2024-10/input-objects/ProductSetInput) ## Examples