PATCH
/
products
/
{productId}
/
variants
/
{variantId}
curl --request PATCH \
  --url https://api.aasaan.shop/api/v1/stores/products/{productId}/variants/{variantId} \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true,
  "depth": 20,
  "description": "Now, ensure the good health of your hair with Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff. Be it dry, frizzy, or damaged, this shampoo can bring back the younger days of your hair within just a few days. The shampoo is richly indulgent and improves the experience of washing your hair. It makes your hair dandruff-free up to 100%. Do not fret over chemicals as the product is gentle in use and can be used every day.",
  "height": 200,
  "images": [
    {
      "id": "<string>",
      "type": "https://images.aasaan.app/123412421",
      "url": "https://images.aasaan.app/123412421"
    }
  ],
  "isShippingEnabled": true,
  "outOfStock": true,
  "prices": [
    {
      "channelId": "636f2e876e9de14bfe1b02f1",
      "regularPrice": "50",
      "salesPrice": "45"
    }
  ],
  "quantity": 1,
  "seo": {
    "description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
    "image": {
      "type": "image/png",
      "url": "https://images.aasaan.app/123412421"
    },
    "title": "Head and Shoulders"
  },
  "shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
  "variantAttributeValues": [
    {
      "name": "color",
      "value": "brown"
    }
  ],
  "weight": 500,
  "width": 100
}'
{
  "active": true,
  "date_created": "2022-03-25T03:17:44.092Z",
  "date_modified": "2022-06-10T07:51:12.510Z",
  "depth": 20,
  "description": "Now, ensure the good health of your hair with Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff. Be it dry, frizzy, or damaged, this shampoo can bring back the younger days of your hair within just a few days. The shampoo is richly indulgent and improves the experience of washing your hair. It makes your hair dandruff-free up to 100%. Do not fret over chemicals as the product is gentle in use and can be used every day.",
  "height": 200,
  "id": "623d3455ec3c4b3548eb4a343",
  "images": [
    {
      "id": "<string>",
      "type": "image/png",
      "url": "https://images.aasaan.app/123412421"
    }
  ],
  "isShippingEnabled": true,
  "names": "XL, Brown",
  "outOfStock": true,
  "prices": [
    {
      "channelId": "636f2e876e9de14bfe1b02f1",
      "regularPrice": "50",
      "salesPrice": "45"
    }
  ],
  "quantity": 1,
  "seo": {
    "description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
    "image": {
      "type": "image/png",
      "url": "https://images.aasaan.app/123412421"
    },
    "title": "Head and Shoulders"
  },
  "shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
  "sku": "000-000-000-000",
  "slug": "head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22",
  "weight": 500,
  "width": 100
}

Path Parameters

productId
string
required

Product Id

variantId
string
required

Variant Id

Body

application/json
active
boolean

Active indicator

depth
integer

Depth(cm)

description
string

Product description

height
integer

Height(cm)

images
object[]

Product images

isShippingEnabled
boolean

Enable to enter shipping details

outOfStock
boolean

Out of stock product

prices
object[]

Price Information across various channels

quantity
integer
required

Product quantity

seo
object

SEO metadata for this product

shortDescription
string

Product short description

variantAttributeValues
object[]
required

attributes and corresponding options

weight
integer
required

Weight(kg)

width
integer

Width(cm)

Response

200 - application/json
active
boolean

Active indicator

date_created
string

Created date

date_modified
string

Modified date

depth
integer

Depth(cm)

description
string

Product description

height
integer

Height(cm)

id
string

Unique identifier for the resource

images
object[]

Product images

isShippingEnabled
boolean

Enable to enter shipping details

names
any[]

Name

outOfStock
boolean

Out of stock product

prices
object[]

Price Information across various channels

quantity
integer

Product quantity

seo
object

SEO metadata for this product

shortDescription
string

Product short description

sku
string

Stock keeping Unit

slug
string

Slug

weight
integer

Weight(kg)

width
integer

Width(cm)