Updates a product variant.
write_products access scope.
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
The updated properties for the product variant.
The value of the barcode associated with the product.
The compare-at price of the variant.
The ID of the fulfillment service associated with the variant.
The Harmonized System Code (or HS Tariff Code) for the variant.
Specifies the product variant to update or create a new variant if absent.
The ID of the image that's associated with the variant.
The URL of an image to associate with the variant. This field can only be used through mutations that create product images and must match one of the URLs being created on the product.
Inventory Item associated with the variant, used for unit cost.
The fulfillment service that tracks the number of items in stock for the product variant. If you track the inventory yourself using the admin, then set the value to
shopify. Valid values:
shopifyor the handle of a fulfillment service that has inventory management enabled. This argument is deprecated: Use tracked attribute on
Whether customers are allowed to place an order for the product variant when it's out of stock.
Create only field. The inventory quantities at each location where the variant is stocked.
The URL of the media to associate with the variant. This field can only be used in mutations that create media images and must match one of the URLs being created on the product. This field only accepts one value.