---
title: "Update the title and price of an existing variant."
method: PUT
path: "/admin/variants/{variant_id}.json"
tags: ["Product Variant"]
---

# Update the title and price of an existing variant.

`PUT /admin/variants/{variant_id}.json`

Update the title and price of an existing variant.

## Request body

- ProductVariantDtoRequest
  - `duplicate_from_variant` boolean
  - `variant` ProductVariantRawRequest
    - `barcode` string — The barcode, UPC, or ISBN number for the product.
    - `fulfillment_service` string — The fulfillment service associated with the product variant. Valid values: manual or the handle of a fulfillment service.
    - `grams` integer — The weight of the product variant in grams.
    - `image_id` integer — The unique numeric identifier for a product's image. The image must be associated to the same product as the variant.
    - `inventory_management` string — 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: shopify or the handle of a fulfillment service that has inventory management enabled. Must be the same fulfillment service referenced by the fulfillment_service property.
    - `inventory_policy` string — Whether customers are allowed to place an order for the product variant when it's out of stock.
    - `inventory_quantity` integer — An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.
    - `option1` string — You can define three options for a product: option1, option2, option3. Default value: Default Title.
    - `option2` string — You can define three options for a product: option1, option2, option3. Default value: Default Title.
    - `option3` string — You can define three options for a product: option1, option2, option3. Default value: Default Title.
    - `position` integer — The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.
    - `product_id` integer — The unique numeric identifier for the product.
    - `requires_shipping` boolean — Whether a customer needs to provide a shipping address when placing an order for the product variant.
    - `sku` string — A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.
    - `taxable` boolean — Whether a tax is charged when the product variant is sold.
    - `title` string — The title of the product variant.
    - `weight` number — The weight of the product variant in the unit system specified with weight_unit
    - `weight_unit` string — The unit of measurement that applies to the product variant's weight. If you don't specify a value for 'weight_unit', then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.

## Response `200`

OK

- APIResponseUpdateProductVariantDto
  - `variant` ProductVariantResponse
    - `barcode` string — The barcode, UPC, or ISBN number for the product.
    - `compare_at_price` string — The original price of the item before an adjustment or a sale.
    - `created_at` string — Retrieve all variants for a product.
    - `fulfillment_service` string — The fulfillment service associated with the product variant. Valid values: manual or the handle of a fulfillment service.
    - `grams` integer — The weight of the product variant in grams.
    - `image_id` integer — The unique numeric identifier for a product's image. The image must be associated to the same product as the variant.
    - `inventory_management` string — 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: shopify or the handle of a fulfillment service that has inventory management enabled. Must be the same fulfillment service referenced by the fulfillment_service property.
    - `inventory_policy` string — Whether customers are allowed to place an order for the product variant when it's out of stock.
    - `inventory_quantity` integer — An aggregate of inventory across all locations. To adjust inventory at a specific location, use the InventoryLevel resource.
    - `option1` string — The custom properties that a shop owner uses to define product variants.
    - `option2` string — The custom properties that a shop owner uses to define product variants.
    - `option3` string — The custom properties that a shop owner uses to define product variants.
    - `position` integer — The order of the product variant in the list of product variants. The first position in the list is 1. The position of variants is indicated by the order in which they are listed.
    - `presentment_prices` PresentmentPrice[]
      - `compare_at_price` Price
        - `amount` string — Amount
        - `currency_code` string — Currency code
      - `price` Price
        - `amount` string — Amount
        - `currency_code` string — Currency code
    - `price` string — The price of the product variant.
    - `product_id` integer — The unique numeric identifier for the product.
    - `requires_shipping` boolean — Whether a customer needs to provide a shipping address when placing an order for the product variant.
    - `sku` string — A unique identifier for the product variant in the shop. Required in order to connect to a FulfillmentService.
    - `taxable` boolean — Whether a tax is charged when the product variant is sold.
    - `title` string — The title of the product variant.
    - `update_at` string — The date and time when the product variant was last modified. Gets returned in ISO 8601 format.
    - `weight` number — The weight of the product variant in the unit system specified with weight_unit
    - `weight_unit` string — The unit of measurement that applies to the product variant's weight. If you don't specify a value for 'weight_unit', then the shop's default unit of measurement is applied. Valid values: g, kg, oz, and lb.

---

[API](https://skmtc.net/shopbase/apis/shopbase-internal-api.md) · [All operations](https://skmtc.net/shopbase/apis/shopbase-internal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shopbase/shopbase-internal-api/revisions/353ccde6240d/schema)
