---
updatedAt: 2026-06-02T19:52:07.000Z
---

# Update a Product Variant

Update the attributes of an existing product variant. Common operations include updating prices, adjusting stock quantities, changing SKUs, or modifying attribute values. The fields available for update vary by platform.

The response returns the updated variant in EcartAPI's unified schema.

> **Note:** Refer to the platform-specific endpoint for updatable fields and validation rules.

## Available platforms

This endpoint is supported by **13 platforms**. Click on each platform to see its specific updatable fields and required parameters.

[BigCommerce](https://docs.ecartapi.com/reference/update_products_variant_bigcommerce) · [eBay v1](https://docs.ecartapi.com/reference/update_products_variant_ebay_v1) · [Ecart](https://docs.ecartapi.com/reference/update_products_variant_ecart) · [Ecwid](https://docs.ecartapi.com/reference/update_products_variant_ecwid) · [Etsy](https://docs.ecartapi.com/reference/update_products_variant_etsy) · [Jumpseller](https://docs.ecartapi.com/reference/update_products_variant_jumpseller) · [PrestaShop](https://docs.ecartapi.com/reference/update_products_variant_prestashop) · [Shopify](https://docs.ecartapi.com/reference/update_products_variant_shopify) · [Shoplazza](https://docs.ecartapi.com/reference/update_products_variant_shoplazza) · [Squarespace](https://docs.ecartapi.com/reference/update_products_variant_squarespace) · [Tienda Nube](https://docs.ecartapi.com/reference/update_products_variant_tiendanube) · [Weebly](https://docs.ecartapi.com/reference/update_products_variant_weebly) · [Wix](https://docs.ecartapi.com/reference/update_products_variant_wix)

> **Updatable fields vary by platform.** Refer to the platform-specific endpoint for supported update fields and validation rules.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "EcartAPI",
    "version": "1.0.0",
    "description": "Unified API reference for all EcartAPI resources. EcartAPI connects 50+ e-commerce platforms through a single, consistent API."
  },
  "servers": [
    {
      "url": "https://api.ecartapi.com/api/v2"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Product Variants",
      "description": "Manage product variants (size, color, SKU combinations) across supported platforms."
    }
  ],
  "paths": {
    "/products/{productId}/variants/{variantId}": {
      "put": {
        "tags": [
          "Product Variants"
        ],
        "summary": "Update a Product Variant",
        "operationId": "update_products_variant",
        "description": "Update the attributes of an existing product variant. Common operations include updating prices, adjusting stock quantities, changing SKUs, or modifying attribute values. The fields available for update vary by platform.\n\nThe response returns the updated variant in EcartAPI's unified schema.\n\n> **Note:** Refer to the platform-specific endpoint for updatable fields and validation rules.",
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the parent product.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "variantId",
            "in": "path",
            "required": true,
            "description": "The unique identifier of the product variant.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "description": "Variant fields to update. Send only the fields you want to change — omitted fields are not modified. Available fields vary by platform.",
                "properties": {
                  "sku": {
                    "type": "string",
                    "description": "Updated SKU code for this variant."
                  },
                  "price": {
                    "type": "number",
                    "description": "Updated variant price."
                  },
                  "compareAtPrice": {
                    "type": "number",
                    "description": "Updated compare-at price. Set to null to remove the strikethrough price."
                  },
                  "stock": {
                    "type": "integer",
                    "description": "Updated inventory quantity for this variant. For multi-location stores, use the Locations & Inventory endpoint."
                  },
                  "weight": {
                    "type": "number",
                    "description": "Updated variant weight."
                  },
                  "barcode": {
                    "type": "string",
                    "description": "Updated barcode value (EAN, UPC, ISBN, etc.)."
                  },
                  "attributes": {
                    "type": "array",
                    "description": "Updated attribute name-value pairs for this variant.",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "variant": {
                      "$ref": "#/components/schemas/ProductVariant"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "ProductVariant": {
        "type": "object",
        "description": "EcartAPI unified product variant schema. Represents a specific purchasable configuration of a product (e.g., size S, color Red). Field availability varies by platform.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique variant identifier in the connected platform."
          },
          "productId": {
            "type": "string",
            "description": "Identifier of the parent product. May be null."
          },
          "name": {
            "type": "string",
            "description": "Variant name or title (e.g., 'Small / Red')."
          },
          "sku": {
            "type": "string",
            "description": "Stock keeping unit code for this variant. May be null."
          },
          "price": {
            "type": "number",
            "description": "Variant price. Overrides the parent product price for this configuration."
          },
          "compareAtPrice": {
            "type": "number",
            "description": "Original or compare-at price for this variant. May be null."
          },
          "stock": {
            "type": "integer",
            "description": "Available inventory quantity for this variant. May be null."
          },
          "weight": {
            "type": "number",
            "description": "Variant weight. May be null."
          },
          "attributes": {
            "type": "array",
            "description": "List of attribute name-value pairs defining this variant (e.g., [{name: 'Size', value: 'Large'}]).",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                }
              }
            }
          },
          "image": {
            "type": "object",
            "description": "Image associated with this variant. May be null.",
            "properties": {
              "id": {
                "type": "string"
              },
              "src": {
                "type": "string"
              }
            }
          },
          "barcode": {
            "type": "string",
            "description": "Barcode (EAN, UPC, ISBN, etc.) for this variant. May be null."
          }
        }
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```