Do I have to to sumit all variants information to update one of them

zhagan
Excursionist
16 1 0

I just want to update one of variants of a product and made a api call as docs mention.

But I got a error message as below:

{"errors":{"price":["can't be blank"]}}

X-Request-ID: 6118ec6e-d0db-44a4-a812-c1c610820143

 

Queustion: Do I have to to sumit all variants information to update one of them?

 

Update a product and one of its variants

PUT /admin/api/2021-04/products/632910392.json

 

{
  "product": {
    "id": 6671769927878,
    "title": "Updated Producdddt Title",
    "variants": [
      {
        "id": 39794127077574,
        "price": "2000.00",
        "sku": "Updating the Product SKU"
      },
	  {
        "id": 39806762156230 
      }
	  
    ]
  }
}

 

 

0 Likes