curl --request PUT \
--url https://api.aasaan.shop/api/v1/stores/products/{productId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
"sku": "000-000-000-000",
"quantity": 1,
"weight": 500,
"categories": [
{
"id": "636f2e876e9de14bfe1b02f1"
}
],
"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.",
"shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
"active": true,
"outOfStock": false,
"width": 100,
"height": 200,
"depth": 20,
"isShippingEnabled": true,
"isProductLevelTaxEnabled": true,
"displayOrder": 1,
"tax": {
"CGST": 2,
"SGST": 2,
"GST": 4
},
"seo": {
"title": "Head and Shoulders",
"description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
"image": {
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
},
"variantAttributeValues": [
{
"name": "color",
"value": [
"blue, yellow, green"
]
}
],
"prices": [
{
"channelId": "636f2e876e9de14bfe1b02f1",
"salesPrice": "45",
"regularPrice": "50",
"hide": false
}
],
"quantities": [
{
"warehouseId": "636f2e876e9de14bfe1b02f1",
"quantity": "45"
}
],
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "https://images.aasaan.app/123412421"
}
],
"brand": {
"id": "636f2e876e9de14bfe1b02f2"
}
}
'
import requests
url = "https://api.aasaan.shop/api/v1/stores/products/{productId}"
payload = {
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
"sku": "000-000-000-000",
"quantity": 1,
"weight": 500,
"categories": [{ "id": "636f2e876e9de14bfe1b02f1" }],
"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.",
"shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
"active": True,
"outOfStock": False,
"width": 100,
"height": 200,
"depth": 20,
"isShippingEnabled": True,
"isProductLevelTaxEnabled": True,
"displayOrder": 1,
"tax": {
"CGST": 2,
"SGST": 2,
"GST": 4
},
"seo": {
"title": "Head and Shoulders",
"description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
"image": {
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
},
"variantAttributeValues": [
{
"name": "color",
"value": ["blue, yellow, green"]
}
],
"prices": [
{
"channelId": "636f2e876e9de14bfe1b02f1",
"salesPrice": "45",
"regularPrice": "50",
"hide": False
}
],
"quantities": [
{
"warehouseId": "636f2e876e9de14bfe1b02f1",
"quantity": "45"
}
],
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "https://images.aasaan.app/123412421"
}
],
"brand": { "id": "636f2e876e9de14bfe1b02f2" }
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo',
sku: '000-000-000-000',
quantity: 1,
weight: 500,
categories: [{id: '636f2e876e9de14bfe1b02f1'}],
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.',
shortDescription: 'Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff',
active: true,
outOfStock: false,
width: 100,
height: 200,
depth: 20,
isShippingEnabled: true,
isProductLevelTaxEnabled: true,
displayOrder: 1,
tax: {CGST: 2, SGST: 2, GST: 4},
seo: {
title: 'Head and Shoulders',
description: 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair',
image: {url: 'https://images.aasaan.app/123412421', type: 'image/png'}
},
variantAttributeValues: [{name: 'color', value: ['blue, yellow, green']}],
prices: [
{
channelId: '636f2e876e9de14bfe1b02f1',
salesPrice: '45',
regularPrice: '50',
hide: false
}
],
quantities: [{warehouseId: '636f2e876e9de14bfe1b02f1', quantity: '45'}],
images: [
{
id: 0,
url: 'https://images.aasaan.app/123412421',
type: 'https://images.aasaan.app/123412421'
}
],
brand: {id: '636f2e876e9de14bfe1b02f2'}
})
};
fetch('https://api.aasaan.shop/api/v1/stores/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aasaan.shop/api/v1/stores/products/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo',
'sku' => '000-000-000-000',
'quantity' => 1,
'weight' => 500,
'categories' => [
[
'id' => '636f2e876e9de14bfe1b02f1'
]
],
'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.',
'shortDescription' => 'Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff',
'active' => true,
'outOfStock' => false,
'width' => 100,
'height' => 200,
'depth' => 20,
'isShippingEnabled' => true,
'isProductLevelTaxEnabled' => true,
'displayOrder' => 1,
'tax' => [
'CGST' => 2,
'SGST' => 2,
'GST' => 4
],
'seo' => [
'title' => 'Head and Shoulders',
'description' => 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair',
'image' => [
'url' => 'https://images.aasaan.app/123412421',
'type' => 'image/png'
]
],
'variantAttributeValues' => [
[
'name' => 'color',
'value' => [
'blue, yellow, green'
]
]
],
'prices' => [
[
'channelId' => '636f2e876e9de14bfe1b02f1',
'salesPrice' => '45',
'regularPrice' => '50',
'hide' => false
]
],
'quantities' => [
[
'warehouseId' => '636f2e876e9de14bfe1b02f1',
'quantity' => '45'
]
],
'images' => [
[
'id' => 0,
'url' => 'https://images.aasaan.app/123412421',
'type' => 'https://images.aasaan.app/123412421'
]
],
'brand' => [
'id' => '636f2e876e9de14bfe1b02f2'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aasaan.shop/api/v1/stores/products/{productId}"
payload := strings.NewReader("{\n \"name\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo\",\n \"sku\": \"000-000-000-000\",\n \"quantity\": 1,\n \"weight\": 500,\n \"categories\": [\n {\n \"id\": \"636f2e876e9de14bfe1b02f1\"\n }\n ],\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"isProductLevelTaxEnabled\": true,\n \"displayOrder\": 1,\n \"tax\": {\n \"CGST\": 2,\n \"SGST\": 2,\n \"GST\": 4\n },\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": [\n \"blue, yellow, green\"\n ]\n }\n ],\n \"prices\": [\n {\n \"channelId\": \"636f2e876e9de14bfe1b02f1\",\n \"salesPrice\": \"45\",\n \"regularPrice\": \"50\",\n \"hide\": false\n }\n ],\n \"quantities\": [\n {\n \"warehouseId\": \"636f2e876e9de14bfe1b02f1\",\n \"quantity\": \"45\"\n }\n ],\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ],\n \"brand\": {\n \"id\": \"636f2e876e9de14bfe1b02f2\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.put("https://api.aasaan.shop/api/v1/stores/products/{productId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo\",\n \"sku\": \"000-000-000-000\",\n \"quantity\": 1,\n \"weight\": 500,\n \"categories\": [\n {\n \"id\": \"636f2e876e9de14bfe1b02f1\"\n }\n ],\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"isProductLevelTaxEnabled\": true,\n \"displayOrder\": 1,\n \"tax\": {\n \"CGST\": 2,\n \"SGST\": 2,\n \"GST\": 4\n },\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": [\n \"blue, yellow, green\"\n ]\n }\n ],\n \"prices\": [\n {\n \"channelId\": \"636f2e876e9de14bfe1b02f1\",\n \"salesPrice\": \"45\",\n \"regularPrice\": \"50\",\n \"hide\": false\n }\n ],\n \"quantities\": [\n {\n \"warehouseId\": \"636f2e876e9de14bfe1b02f1\",\n \"quantity\": \"45\"\n }\n ],\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ],\n \"brand\": {\n \"id\": \"636f2e876e9de14bfe1b02f2\"\n }\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.aasaan.shop/api/v1/stores/products/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo\",\n \"sku\": \"000-000-000-000\",\n \"quantity\": 1,\n \"weight\": 500,\n \"categories\": [\n {\n \"id\": \"636f2e876e9de14bfe1b02f1\"\n }\n ],\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"isProductLevelTaxEnabled\": true,\n \"displayOrder\": 1,\n \"tax\": {\n \"CGST\": 2,\n \"SGST\": 2,\n \"GST\": 4\n },\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": [\n \"blue, yellow, green\"\n ]\n }\n ],\n \"prices\": [\n {\n \"channelId\": \"636f2e876e9de14bfe1b02f1\",\n \"salesPrice\": \"45\",\n \"regularPrice\": \"50\",\n \"hide\": false\n }\n ],\n \"quantities\": [\n {\n \"warehouseId\": \"636f2e876e9de14bfe1b02f1\",\n \"quantity\": \"45\"\n }\n ],\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ],\n \"brand\": {\n \"id\": \"636f2e876e9de14bfe1b02f2\"\n }\n}"
response = http.request(request)
puts response.read_body
{
"id": "623d3455ec3c4b3548eb4a343",
"sku": "000-000-000-000",
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
"slug": "head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22",
"quantity": 1,
"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.",
"shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
"active": true,
"outOfStock": false,
"width": 100,
"height": 200,
"depth": 20,
"weight": 500,
"prices": [
{
"channelId": "636f2e876e9de14bfe1b02f1",
"salesPrice": "45",
"regularPrice": "50",
"hide": false
}
],
"isShippingEnabled": true,
"isProductLevelTaxEnabled": true,
"tax": {
"CGST": 2,
"SGST": 2,
"GST": 4
},
"isVariantEnabled": true,
"seo": {
"title": "Head and Shoulders",
"description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
"image": {
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
},
"categories": [
{
"id": "1231231",
"name": "Shampoos and Soaps"
}
],
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
],
"variantAttributeValues": [
{
"name": "color",
"value": [
"blue, yellow, green"
]
}
],
"brand": {
"id": "636f2e876e9de14bfe1b02fa",
"name": "P&G"
},
"variants": [
{
"id": "567152378158871683",
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo 600ml",
"quantity": 10,
"description": "",
"shortDescription": "",
"active": true,
"outOfStock": false,
"width": 10,
"height": 10,
"depth": 10,
"weight": 10,
"isShippingEnabled": true,
"isProductLevelTaxEnabled": true,
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
],
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}
],
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}
Product
Create or update a product.
Create a new product or update existing product with this PUT operation.
PUT
/
products
/
{productId}
Create or update a product.
curl --request PUT \
--url https://api.aasaan.shop/api/v1/stores/products/{productId} \
--header 'Content-Type: application/json' \
--data '
{
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
"sku": "000-000-000-000",
"quantity": 1,
"weight": 500,
"categories": [
{
"id": "636f2e876e9de14bfe1b02f1"
}
],
"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.",
"shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
"active": true,
"outOfStock": false,
"width": 100,
"height": 200,
"depth": 20,
"isShippingEnabled": true,
"isProductLevelTaxEnabled": true,
"displayOrder": 1,
"tax": {
"CGST": 2,
"SGST": 2,
"GST": 4
},
"seo": {
"title": "Head and Shoulders",
"description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
"image": {
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
},
"variantAttributeValues": [
{
"name": "color",
"value": [
"blue, yellow, green"
]
}
],
"prices": [
{
"channelId": "636f2e876e9de14bfe1b02f1",
"salesPrice": "45",
"regularPrice": "50",
"hide": false
}
],
"quantities": [
{
"warehouseId": "636f2e876e9de14bfe1b02f1",
"quantity": "45"
}
],
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "https://images.aasaan.app/123412421"
}
],
"brand": {
"id": "636f2e876e9de14bfe1b02f2"
}
}
'
import requests
url = "https://api.aasaan.shop/api/v1/stores/products/{productId}"
payload = {
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
"sku": "000-000-000-000",
"quantity": 1,
"weight": 500,
"categories": [{ "id": "636f2e876e9de14bfe1b02f1" }],
"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.",
"shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
"active": True,
"outOfStock": False,
"width": 100,
"height": 200,
"depth": 20,
"isShippingEnabled": True,
"isProductLevelTaxEnabled": True,
"displayOrder": 1,
"tax": {
"CGST": 2,
"SGST": 2,
"GST": 4
},
"seo": {
"title": "Head and Shoulders",
"description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
"image": {
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
},
"variantAttributeValues": [
{
"name": "color",
"value": ["blue, yellow, green"]
}
],
"prices": [
{
"channelId": "636f2e876e9de14bfe1b02f1",
"salesPrice": "45",
"regularPrice": "50",
"hide": False
}
],
"quantities": [
{
"warehouseId": "636f2e876e9de14bfe1b02f1",
"quantity": "45"
}
],
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "https://images.aasaan.app/123412421"
}
],
"brand": { "id": "636f2e876e9de14bfe1b02f2" }
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo',
sku: '000-000-000-000',
quantity: 1,
weight: 500,
categories: [{id: '636f2e876e9de14bfe1b02f1'}],
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.',
shortDescription: 'Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff',
active: true,
outOfStock: false,
width: 100,
height: 200,
depth: 20,
isShippingEnabled: true,
isProductLevelTaxEnabled: true,
displayOrder: 1,
tax: {CGST: 2, SGST: 2, GST: 4},
seo: {
title: 'Head and Shoulders',
description: 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair',
image: {url: 'https://images.aasaan.app/123412421', type: 'image/png'}
},
variantAttributeValues: [{name: 'color', value: ['blue, yellow, green']}],
prices: [
{
channelId: '636f2e876e9de14bfe1b02f1',
salesPrice: '45',
regularPrice: '50',
hide: false
}
],
quantities: [{warehouseId: '636f2e876e9de14bfe1b02f1', quantity: '45'}],
images: [
{
id: 0,
url: 'https://images.aasaan.app/123412421',
type: 'https://images.aasaan.app/123412421'
}
],
brand: {id: '636f2e876e9de14bfe1b02f2'}
})
};
fetch('https://api.aasaan.shop/api/v1/stores/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aasaan.shop/api/v1/stores/products/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo',
'sku' => '000-000-000-000',
'quantity' => 1,
'weight' => 500,
'categories' => [
[
'id' => '636f2e876e9de14bfe1b02f1'
]
],
'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.',
'shortDescription' => 'Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff',
'active' => true,
'outOfStock' => false,
'width' => 100,
'height' => 200,
'depth' => 20,
'isShippingEnabled' => true,
'isProductLevelTaxEnabled' => true,
'displayOrder' => 1,
'tax' => [
'CGST' => 2,
'SGST' => 2,
'GST' => 4
],
'seo' => [
'title' => 'Head and Shoulders',
'description' => 'Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair',
'image' => [
'url' => 'https://images.aasaan.app/123412421',
'type' => 'image/png'
]
],
'variantAttributeValues' => [
[
'name' => 'color',
'value' => [
'blue, yellow, green'
]
]
],
'prices' => [
[
'channelId' => '636f2e876e9de14bfe1b02f1',
'salesPrice' => '45',
'regularPrice' => '50',
'hide' => false
]
],
'quantities' => [
[
'warehouseId' => '636f2e876e9de14bfe1b02f1',
'quantity' => '45'
]
],
'images' => [
[
'id' => 0,
'url' => 'https://images.aasaan.app/123412421',
'type' => 'https://images.aasaan.app/123412421'
]
],
'brand' => [
'id' => '636f2e876e9de14bfe1b02f2'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aasaan.shop/api/v1/stores/products/{productId}"
payload := strings.NewReader("{\n \"name\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo\",\n \"sku\": \"000-000-000-000\",\n \"quantity\": 1,\n \"weight\": 500,\n \"categories\": [\n {\n \"id\": \"636f2e876e9de14bfe1b02f1\"\n }\n ],\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"isProductLevelTaxEnabled\": true,\n \"displayOrder\": 1,\n \"tax\": {\n \"CGST\": 2,\n \"SGST\": 2,\n \"GST\": 4\n },\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": [\n \"blue, yellow, green\"\n ]\n }\n ],\n \"prices\": [\n {\n \"channelId\": \"636f2e876e9de14bfe1b02f1\",\n \"salesPrice\": \"45\",\n \"regularPrice\": \"50\",\n \"hide\": false\n }\n ],\n \"quantities\": [\n {\n \"warehouseId\": \"636f2e876e9de14bfe1b02f1\",\n \"quantity\": \"45\"\n }\n ],\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ],\n \"brand\": {\n \"id\": \"636f2e876e9de14bfe1b02f2\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.put("https://api.aasaan.shop/api/v1/stores/products/{productId}")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo\",\n \"sku\": \"000-000-000-000\",\n \"quantity\": 1,\n \"weight\": 500,\n \"categories\": [\n {\n \"id\": \"636f2e876e9de14bfe1b02f1\"\n }\n ],\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"isProductLevelTaxEnabled\": true,\n \"displayOrder\": 1,\n \"tax\": {\n \"CGST\": 2,\n \"SGST\": 2,\n \"GST\": 4\n },\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": [\n \"blue, yellow, green\"\n ]\n }\n ],\n \"prices\": [\n {\n \"channelId\": \"636f2e876e9de14bfe1b02f1\",\n \"salesPrice\": \"45\",\n \"regularPrice\": \"50\",\n \"hide\": false\n }\n ],\n \"quantities\": [\n {\n \"warehouseId\": \"636f2e876e9de14bfe1b02f1\",\n \"quantity\": \"45\"\n }\n ],\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ],\n \"brand\": {\n \"id\": \"636f2e876e9de14bfe1b02f2\"\n }\n}")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.aasaan.shop/api/v1/stores/products/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo\",\n \"sku\": \"000-000-000-000\",\n \"quantity\": 1,\n \"weight\": 500,\n \"categories\": [\n {\n \"id\": \"636f2e876e9de14bfe1b02f1\"\n }\n ],\n \"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.\",\n \"shortDescription\": \"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff\",\n \"active\": true,\n \"outOfStock\": false,\n \"width\": 100,\n \"height\": 200,\n \"depth\": 20,\n \"isShippingEnabled\": true,\n \"isProductLevelTaxEnabled\": true,\n \"displayOrder\": 1,\n \"tax\": {\n \"CGST\": 2,\n \"SGST\": 2,\n \"GST\": 4\n },\n \"seo\": {\n \"title\": \"Head and Shoulders\",\n \"description\": \"Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair\",\n \"image\": {\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"image/png\"\n }\n },\n \"variantAttributeValues\": [\n {\n \"name\": \"color\",\n \"value\": [\n \"blue, yellow, green\"\n ]\n }\n ],\n \"prices\": [\n {\n \"channelId\": \"636f2e876e9de14bfe1b02f1\",\n \"salesPrice\": \"45\",\n \"regularPrice\": \"50\",\n \"hide\": false\n }\n ],\n \"quantities\": [\n {\n \"warehouseId\": \"636f2e876e9de14bfe1b02f1\",\n \"quantity\": \"45\"\n }\n ],\n \"images\": [\n {\n \"id\": 0,\n \"url\": \"https://images.aasaan.app/123412421\",\n \"type\": \"https://images.aasaan.app/123412421\"\n }\n ],\n \"brand\": {\n \"id\": \"636f2e876e9de14bfe1b02f2\"\n }\n}"
response = http.request(request)
puts response.read_body
{
"id": "623d3455ec3c4b3548eb4a343",
"sku": "000-000-000-000",
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo",
"slug": "head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22",
"quantity": 1,
"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.",
"shortDescription": "Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff",
"active": true,
"outOfStock": false,
"width": 100,
"height": 200,
"depth": 20,
"weight": 500,
"prices": [
{
"channelId": "636f2e876e9de14bfe1b02f1",
"salesPrice": "45",
"regularPrice": "50",
"hide": false
}
],
"isShippingEnabled": true,
"isProductLevelTaxEnabled": true,
"tax": {
"CGST": 2,
"SGST": 2,
"GST": 4
},
"isVariantEnabled": true,
"seo": {
"title": "Head and Shoulders",
"description": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair",
"image": {
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
},
"categories": [
{
"id": "1231231",
"name": "Shampoos and Soaps"
}
],
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
],
"variantAttributeValues": [
{
"name": "color",
"value": [
"blue, yellow, green"
]
}
],
"brand": {
"id": "636f2e876e9de14bfe1b02fa",
"name": "P&G"
},
"variants": [
{
"id": "567152378158871683",
"name": "Head & Shoulders Anti Hairfall Anti Dandruff Shampoo 600ml",
"quantity": 10,
"description": "",
"shortDescription": "",
"active": true,
"outOfStock": false,
"width": 10,
"height": 10,
"depth": 10,
"weight": 10,
"isShippingEnabled": true,
"isProductLevelTaxEnabled": true,
"images": [
{
"id": 0,
"url": "https://images.aasaan.app/123412421",
"type": "image/png"
}
],
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}
],
"date_created": "2022-03-25T03:17:44.092Z",
"date_modified": "2022-06-10T07:51:12.510Z"
}
"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."
"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."
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Aasaan","colors":{"primary":"#06B390","light":"#83CC57","dark":"#06B390"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/aasaan/Pj8mF7uTXkEd7VYt/logo.png?fit=max\u0026auto=format\u0026n=Pj8mF7uTXkEd7VYt\u0026q=85\u0026s=ee181737662dc85d3e531fa3a5ede21b","dark":"https://mintcdn.com/aasaan/Pj8mF7uTXkEd7VYt/logo.png?fit=max\u0026auto=format\u0026n=Pj8mF7uTXkEd7VYt\u0026q=85\u0026s=ee181737662dc85d3e531fa3a5ede21b"},"appearance":{"default":"dark","strict":true},"navbar":{"primary":{"type":"button","label":"Sign Up","href":"https://admin.aasaan.app/auth/register"}},"footer":{"socials":{"twitter":"https://twitter.com/aasaan_app_/","instagram":"https://www.instagram.com/aasaan_app_/","linkedin":"https://www.linkedin.com/company/aasaanapp/"}},"navigation":{"global":{"anchors":[{"anchor":"Connect to Shopify","href":"https://aasaan.app/connect/shopify/","icon":"shopify"},{"anchor":"Connect to Bigcommerce","href":"https://aasaan.app/connect/bigcommerce/","icon":"money-check-dollar"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aasaan","hasAudioNarration":false,"actualSubdomain":"aasaan","customDomains":["help.aasaan.app"],"gitSource":{"type":"github","owner":"gsraju27","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e60f91916e8ce404e5f6","collectionId":"ecf16b7a-eadf-4a25-ae27-e68276b3fcc9","schemaVersion":"v2"},"entitlements":{},"buildId":"6a21e60f91916e8ce404e5f6:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Partner API","count":43},{"language":"default","tag":"Backend API","count":37},{"language":"default","tag":"Documentation","count":32},{"language":"default","tag":"Product","count":18},{"language":"default","tag":"Brand","count":14},{"language":"default","tag":"Category","count":14},{"language":"default","tag":"STOREFRONT BUILDER","count":10},{"language":"default","tag":"APP MARKET","count":9},{"language":"default","tag":"COMMERCE","count":9},{"language":"default","tag":"GETTING STARTED","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"backend-api/product/create-or-update-a-product","slug":"/backend-api/product/create-or-update-a-product","pageMetadata":{"openapi":"put /products/{productId}","title":"Create or update a product.","description":"Create a new product or update existing product with this PUT operation.","href":"/backend-api/product/create-or-update-a-product"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a new product or update existing product with this PUT operation.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"put /products/{productId}","title":"Create or update a product.","description":"Create a new product or update existing product with this PUT operation.","href":"/backend-api/product/create-or-update-a-product"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Create or update a product.","tags":["Product"],"description":"Create a new product or update existing product with this PUT operation.","parameters":["8ea331ed-66c5-4841-8433-f85cb01ed812"],"requestBody":"97edb1ed-f130-4453-b819-d6c248ca6670","responses":{"201":"f2c5410f-8d20-439c-a8fd-1f31fb4bed8a","403":"1a3053e7-ffc5-4d82-b496-1c20f6f7c0d6","422":"993745a8-c4ba-4d32-9a5e-692d08622718","500":"f44c7764-66f1-42b0-ae42-7d27f923819f"},"method":"put","type":"path","servers":["ec97bbf9-ebbc-4810-8e3f-964642f59bc5"],"security":[],"path":"/products/{productId}","baseUrlOptions":["https://api.aasaan.shop/api/v1/stores"],"title":"Create or update a product.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"8ea331ed-66c5-4841-8433-f85cb01ed812":{"name":"productId","in":"path","required":true,"schema":{"type":"string","description":"Product Id","isRequired":true,"uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["name","quantity","weight","sku","categories"],"properties":{"name":{"type":"string","description":"Name","example":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"sku":{"type":"string","description":"Stock keeping Unit","example":"000-000-000-000","isRequired":true,"uniqueKey":"sku","typeLabel":"string"},"quantity":{"type":"integer","description":"Product quantity","example":1,"isRequired":true,"uniqueKey":"quantity","typeLabel":"integer"},"weight":{"type":"integer","description":"Weight(kg)","example":500,"isRequired":true,"uniqueKey":"weight","typeLabel":"integer"},"categories":{"type":"array","description":"Associated Categories","items":{"type":"object","properties":{"id":{"type":"string","description":"id","example":"636f2e876e9de14bfe1b02f1","uniqueKey":"categories.items.[INDEX].id","typeLabel":"string"}},"uniqueKey":"categories.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"categories","typeLabel":"object[]"},"description":{"type":"string","description":"Product description","example":"Now, ensure the good health of your hair with Head \u0026 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.","uniqueKey":"description","typeLabel":"string"},"shortDescription":{"type":"string","description":"Product short description","example":"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff","uniqueKey":"shortDescription","typeLabel":"string"},"active":{"type":"boolean","description":"Active indicator","example":true,"uniqueKey":"active","typeLabel":"boolean"},"outOfStock":{"type":"boolean","description":"Out of stock product","example":false,"uniqueKey":"outOfStock","typeLabel":"boolean"},"width":{"type":"integer","description":"Width(cm)","example":100,"uniqueKey":"width","typeLabel":"integer"},"height":{"type":"integer","description":"Height(cm)","example":200,"uniqueKey":"height","typeLabel":"integer"},"depth":{"type":"integer","description":"Depth(cm)","example":20,"uniqueKey":"depth","typeLabel":"integer"},"isShippingEnabled":{"type":"boolean","description":"Enable to enter shipping details","example":true,"uniqueKey":"isShippingEnabled","typeLabel":"boolean"},"isProductLevelTaxEnabled":{"type":"boolean","description":"Enable to enter CGST and SGST taxes","example":true,"uniqueKey":"isProductLevelTaxEnabled","typeLabel":"boolean"},"displayOrder":{"type":"integer","description":"Product display order","example":1,"uniqueKey":"displayOrder","typeLabel":"integer"},"tax":{"type":"object","description":"Tax information for this product","properties":{"CGST":{"type":"integer","description":"Central Goods and Service tax (%)","example":2,"uniqueKey":"tax.CGST","typeLabel":"integer"},"SGST":{"type":"integer","description":"Stage Goods and Service tax (%)","example":2,"uniqueKey":"tax.SGST","typeLabel":"integer"},"GST":{"type":"integer","description":"Overall Goods and Service tax (%)","example":4,"uniqueKey":"tax.GST","typeLabel":"integer"}},"uniqueKey":"tax","typeLabel":"object"},"seo":{"type":"object","description":"SEO metadata for this product","properties":{"title":{"type":"string","description":"SEO Title","example":"Head and Shoulders","uniqueKey":"seo.title","typeLabel":"string"},"description":{"type":"string","description":"SEO Description","example":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair","uniqueKey":"seo.description","typeLabel":"string"},"image":{"type":"object","description":"SEO Image","properties":{"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"seo.image.url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"image/png","uniqueKey":"seo.image.type","typeLabel":"string"}},"uniqueKey":"seo.image","typeLabel":"object"}},"uniqueKey":"seo","typeLabel":"object"},"variantAttributeValues":{"type":"array","description":"All Possible Variant Attribute Values that this parent product can have","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the variant attribute","example":"color","uniqueKey":"variantAttributeValues.items.[INDEX].name","typeLabel":"string"},"value":{"type":"array","description":"List of all possible values that this attribute can have as variants","items":{"type":"string","example":"blue, yellow, green","uniqueKey":"variantAttributeValues.items.[INDEX].value.items.[INDEX]","typeLabel":"string"},"uniqueKey":"variantAttributeValues.items.[INDEX].value","typeLabel":"string[]"}},"uniqueKey":"variantAttributeValues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"variantAttributeValues","typeLabel":"object[]"},"prices":{"type":"array","description":"Price Information across various channels","items":{"type":"object","properties":{"channelId":{"type":"string","description":"ID of the channel for which price is being specified","example":"636f2e876e9de14bfe1b02f1","uniqueKey":"prices.items.[INDEX].channelId","typeLabel":"string"},"salesPrice":{"type":"string","description":"Current Selling Price","example":"45","uniqueKey":"prices.items.[INDEX].salesPrice","typeLabel":"string"},"regularPrice":{"type":"string","description":"Actual Price - should be greater than on equal to salesPrice","example":"50","uniqueKey":"prices.items.[INDEX].regularPrice","typeLabel":"string"},"hide":{"type":"boolean","description":"Hides the product in the channel","example":false,"uniqueKey":"prices.items.[INDEX].hide","typeLabel":"boolean"}},"uniqueKey":"prices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prices","typeLabel":"object[]"},"quantities":{"type":"array","description":"Quantity Information across various warehouses","items":{"type":"object","properties":{"warehouseId":{"type":"string","description":"ID of the warehouse for which quantity needs to be specified","example":"636f2e876e9de14bfe1b02f1","uniqueKey":"quantities.items.[INDEX].warehouseId","typeLabel":"string"},"quantity":{"type":"string","description":"Integer value representing the current available quantity in this warehouse for this product","example":"45","uniqueKey":"quantities.items.[INDEX].quantity","typeLabel":"string"}},"uniqueKey":"quantities.items.[INDEX]","typeLabel":"object"},"uniqueKey":"quantities","typeLabel":"object[]"},"images":{"type":"array","description":"Product images","items":{"type":"object","properties":{"id":{"type":"string","description":"Image identifier","example":0,"uniqueKey":"images.items.[INDEX].id","typeLabel":"string"},"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"images.items.[INDEX].url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"https://images.aasaan.app/123412421","uniqueKey":"images.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"images","typeLabel":"object[]"},"brand":{"type":"object","description":"Brand","properties":{"id":{"type":"string","description":"id","example":"636f2e876e9de14bfe1b02f2","uniqueKey":"brand.id","typeLabel":"string"}},"uniqueKey":"brand","typeLabel":"object"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo","sku":"000-000-000-000","quantity":1,"weight":500,"categories":[{"id":"636f2e876e9de14bfe1b02f1"}],"description":"Now, ensure the good health of your hair with Head \u0026 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.","shortDescription":"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff","active":true,"outOfStock":false,"width":100,"height":200,"depth":20,"isShippingEnabled":true,"isProductLevelTaxEnabled":true,"displayOrder":1,"tax":{"CGST":2,"SGST":2,"GST":4},"seo":{"title":"Head and Shoulders","description":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair","image":{"url":"https://images.aasaan.app/123412421","type":"image/png"}},"variantAttributeValues":[{"name":"color","value":["blue, yellow, green"]}],"prices":[{"channelId":"636f2e876e9de14bfe1b02f1","salesPrice":"45","regularPrice":"50","hide":false}],"quantities":[{"warehouseId":"636f2e876e9de14bfe1b02f1","quantity":"45"}],"images":[{"id":0,"url":"https://images.aasaan.app/123412421","type":"https://images.aasaan.app/123412421"}],"brand":{"id":"636f2e876e9de14bfe1b02f2"}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"f2c5410f-8d20-439c-a8fd-1f31fb4bed8a":{"description":"Product created.","content":{"application/json":{"schema":{"properties":{"id":{"type":"string","description":"Unique identifier for the resource","example":"623d3455ec3c4b3548eb4a343","uniqueKey":"id","typeLabel":"string"},"sku":{"type":"string","description":"Stock keeping Unit","example":"000-000-000-000","uniqueKey":"sku","typeLabel":"string"},"name":{"type":"string","description":"Name","example":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo","uniqueKey":"name","typeLabel":"string"},"slug":{"type":"string","description":"Slug","example":"head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22","uniqueKey":"slug","typeLabel":"string"},"quantity":{"type":"integer","description":"Product quantity","example":1,"uniqueKey":"quantity","typeLabel":"integer"},"description":{"type":"string","description":"Product description","example":"Now, ensure the good health of your hair with Head \u0026 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.","uniqueKey":"description","typeLabel":"string"},"shortDescription":{"type":"string","description":"Product short description","example":"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff","uniqueKey":"shortDescription","typeLabel":"string"},"active":{"type":"boolean","description":"Active indicator","example":true,"uniqueKey":"active","typeLabel":"boolean"},"outOfStock":{"type":"boolean","description":"Out of stock product","example":false,"uniqueKey":"outOfStock","typeLabel":"boolean"},"width":{"type":"integer","description":"Width(cm)","example":100,"uniqueKey":"width","typeLabel":"integer"},"height":{"type":"integer","description":"Height(cm)","example":200,"uniqueKey":"height","typeLabel":"integer"},"depth":{"type":"integer","description":"Depth(cm)","example":20,"uniqueKey":"depth","typeLabel":"integer"},"weight":{"type":"integer","description":"Weight(kg)","example":500,"uniqueKey":"weight","typeLabel":"integer"},"prices":{"type":"array","description":"Price Information across various channels","items":{"type":"object","properties":{"channelId":{"type":"string","description":"ID of the channel for which price is being specified","example":"636f2e876e9de14bfe1b02f1","uniqueKey":"prices.items.[INDEX].channelId","typeLabel":"string"},"salesPrice":{"type":"string","description":"Current Selling Price","example":"45","uniqueKey":"prices.items.[INDEX].salesPrice","typeLabel":"string"},"regularPrice":{"type":"string","description":"Actual Price - should be greater than on equal to salesPrice","example":"50","uniqueKey":"prices.items.[INDEX].regularPrice","typeLabel":"string"},"hide":{"type":"boolean","description":"Hides the product in the channel","example":false,"uniqueKey":"prices.items.[INDEX].hide","typeLabel":"boolean"}},"uniqueKey":"prices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"prices","typeLabel":"object[]"},"isShippingEnabled":{"type":"boolean","description":"Enable to enter shipping details","example":true,"uniqueKey":"isShippingEnabled","typeLabel":"boolean"},"isProductLevelTaxEnabled":{"type":"boolean","description":"Enable to enter CGST and SGST taxes","example":true,"uniqueKey":"isProductLevelTaxEnabled","typeLabel":"boolean"},"tax":{"type":"object","description":"Tax information for this product","properties":{"CGST":{"type":"integer","description":"Central Goods and Service tax (%)","example":2,"uniqueKey":"tax.CGST","typeLabel":"integer"},"SGST":{"type":"integer","description":"Stage Goods and Service tax (%)","example":2,"uniqueKey":"tax.SGST","typeLabel":"integer"},"GST":{"type":"integer","description":"Overall Goods and Service tax (%)","example":4,"uniqueKey":"tax.GST","typeLabel":"integer"}},"uniqueKey":"tax","typeLabel":"object"},"isVariantEnabled":{"type":"boolean","description":"Enable to enter product variants","uniqueKey":"isVariantEnabled","typeLabel":"boolean"},"seo":{"type":"object","description":"SEO metadata for this product","properties":{"title":{"type":"string","description":"SEO Title","example":"Head and Shoulders","uniqueKey":"seo.title","typeLabel":"string"},"description":{"type":"string","description":"SEO Description","example":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair","uniqueKey":"seo.description","typeLabel":"string"},"image":{"type":"object","description":"SEO Image","properties":{"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"seo.image.url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"image/png","uniqueKey":"seo.image.type","typeLabel":"string"}},"uniqueKey":"seo.image","typeLabel":"object"}},"uniqueKey":"seo","typeLabel":"object"},"categories":{"type":"array","description":"Associated Categories","items":{"type":"object","properties":{"id":{"type":"string","description":"id","example":"1231231","uniqueKey":"categories.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"name","example":"Shampoos and Soaps","uniqueKey":"categories.items.[INDEX].name","typeLabel":"string"}},"uniqueKey":"categories.items.[INDEX]","typeLabel":"object"},"uniqueKey":"categories","typeLabel":"object[]"},"images":{"type":"array","description":"Product images","items":{"type":"object","properties":{"id":{"type":"string","description":"Image identifier","example":0,"uniqueKey":"images.items.[INDEX].id","typeLabel":"string"},"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"images.items.[INDEX].url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"image/png","uniqueKey":"images.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"images","typeLabel":"object[]"},"variantAttributeValues":{"type":"array","description":"All Possible Variant Attribute Values that this parent product can have","items":{"type":"object","properties":{"name":{"type":"string","description":"Name of the variant attribute","example":"color","uniqueKey":"variantAttributeValues.items.[INDEX].name","typeLabel":"string"},"value":{"type":"array","description":"List of all possible values that this attribute can have as variants","items":{"type":"string","example":"blue, yellow, green","uniqueKey":"variantAttributeValues.items.[INDEX].value.items.[INDEX]","typeLabel":"string"},"uniqueKey":"variantAttributeValues.items.[INDEX].value","typeLabel":"string[]"}},"uniqueKey":"variantAttributeValues.items.[INDEX]","typeLabel":"object"},"uniqueKey":"variantAttributeValues","typeLabel":"object[]"},"brand":{"type":"object","description":"Brand","properties":{"id":{"type":"string","description":"id","example":"636f2e876e9de14bfe1b02fa","uniqueKey":"brand.id","typeLabel":"string"},"name":{"type":"string","description":"name","example":"P\u0026G","uniqueKey":"brand.name","typeLabel":"string"}},"uniqueKey":"brand","typeLabel":"object"},"variants":{"type":"array","description":"Images","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for a variant","example":"567152378158871683","uniqueKey":"variants.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","description":"Variant name","example":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo 600ml","uniqueKey":"variants.items.[INDEX].name","typeLabel":"string"},"quantity":{"type":"integer","description":"Variant quantity","example":10,"uniqueKey":"variants.items.[INDEX].quantity","typeLabel":"integer"},"description":{"type":"string","description":"Variant description","example":"","uniqueKey":"variants.items.[INDEX].description","typeLabel":"string"},"shortDescription":{"type":"string","description":"Variant short description","example":"","uniqueKey":"variants.items.[INDEX].shortDescription","typeLabel":"string"},"active":{"type":"boolean","description":"Active indicator","example":true,"uniqueKey":"variants.items.[INDEX].active","typeLabel":"boolean"},"outOfStock":{"type":"boolean","description":"Out of stock","example":false,"uniqueKey":"variants.items.[INDEX].outOfStock","typeLabel":"boolean"},"width":{"type":"integer","description":"Width(cm)","example":10,"uniqueKey":"variants.items.[INDEX].width","typeLabel":"integer"},"height":{"type":"integer","description":"Height(cm)","example":10,"uniqueKey":"variants.items.[INDEX].height","typeLabel":"integer"},"depth":{"type":"integer","description":"Depth(cm)","example":10,"uniqueKey":"variants.items.[INDEX].depth","typeLabel":"integer"},"weight":{"type":"integer","description":"Weight(kg)","example":10,"uniqueKey":"variants.items.[INDEX].weight","typeLabel":"integer"},"isShippingEnabled":{"type":"boolean","description":"Enable to enter shipping details","example":true,"uniqueKey":"variants.items.[INDEX].isShippingEnabled","typeLabel":"boolean"},"isProductLevelTaxEnabled":{"type":"boolean","description":"Enable to enter CGST and SGST taxes","example":true,"uniqueKey":"variants.items.[INDEX].isProductLevelTaxEnabled","typeLabel":"boolean"},"images":{"type":"array","description":"Variant images","items":{"type":"object","properties":{"id":{"type":"string","description":"Image identifier","example":0,"uniqueKey":"variants.items.[INDEX].images.items.[INDEX].id","typeLabel":"string"},"url":{"type":"string","description":"Image URL","example":"https://images.aasaan.app/123412421","uniqueKey":"variants.items.[INDEX].images.items.[INDEX].url","typeLabel":"string"},"type":{"type":"string","description":"Mime Type","example":"image/png","uniqueKey":"variants.items.[INDEX].images.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"variants.items.[INDEX].images.items.[INDEX]","typeLabel":"object"},"uniqueKey":"variants.items.[INDEX].images","typeLabel":"object[]"},"date_created":{"type":"string","description":"Created date","example":"2022-03-25T03:17:44.092Z","uniqueKey":"variants.items.[INDEX].date_created","typeLabel":"string"},"date_modified":{"type":"string","description":"Modified date","example":"2022-06-10T07:51:12.510Z","uniqueKey":"variants.items.[INDEX].date_modified","typeLabel":"string"}},"uniqueKey":"variants.items.[INDEX]","typeLabel":"object"},"uniqueKey":"variants","typeLabel":"object[]"},"date_created":{"type":"string","description":"Created date","example":"2022-03-25T03:17:44.092Z","uniqueKey":"date_created","typeLabel":"string"},"date_modified":{"type":"string","description":"Modified date","example":"2022-06-10T07:51:12.510Z","uniqueKey":"date_modified","typeLabel":"string"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"623d3455ec3c4b3548eb4a343","sku":"000-000-000-000","name":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo","slug":"head_shoulders_anti_hairfall_anti_dandruff_shampoo_650_ml_22","quantity":1,"description":"Now, ensure the good health of your hair with Head \u0026 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.","shortDescription":"Anti Dandruff Shampoo that strengthens hair from its roots and cures dandruff","active":true,"outOfStock":false,"width":100,"height":200,"depth":20,"weight":500,"prices":[{"channelId":"636f2e876e9de14bfe1b02f1","salesPrice":"45","regularPrice":"50","hide":false}],"isShippingEnabled":true,"isProductLevelTaxEnabled":true,"tax":{"CGST":2,"SGST":2,"GST":4},"isVariantEnabled":true,"seo":{"title":"Head and Shoulders","description":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo that strengthens hair","image":{"url":"https://images.aasaan.app/123412421","type":"image/png"}},"categories":[{"id":"1231231","name":"Shampoos and Soaps"}],"images":[{"id":0,"url":"https://images.aasaan.app/123412421","type":"image/png"}],"variantAttributeValues":[{"name":"color","value":["blue, yellow, green"]}],"brand":{"id":"636f2e876e9de14bfe1b02fa","name":"P\u0026G"},"variants":[{"id":"567152378158871683","name":"Head \u0026 Shoulders Anti Hairfall Anti Dandruff Shampoo 600ml","quantity":10,"description":"","shortDescription":"","active":true,"outOfStock":false,"width":10,"height":10,"depth":10,"weight":10,"isShippingEnabled":true,"isProductLevelTaxEnabled":true,"images":[{"id":0,"url":"https://images.aasaan.app/123412421","type":"image/png"}],"date_created":"2022-03-25T03:17:44.092Z","date_modified":"2022-06-10T07:51:12.510Z"}],"date_created":"2022-03-25T03:17:44.092Z","date_modified":"2022-06-10T07:51:12.510Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"1a3053e7-ffc5-4d82-b496-1c20f6f7c0d6":{"description":"Invalid Api Key","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"993745a8-c4ba-4d32-9a5e-692d08622718":{"description":"Data error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"f44c7764-66f1-42b0-ae42-7d27f923819f":{"description":"Internal Server Error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{},"servers":{"ec97bbf9-ebbc-4810-8e3f-964642f59bc5":{"url":"https://api.aasaan.shop/api/v1/stores","description":"Development server"}}},"originalFileLocation":"storeapi.json"},"subdomain":"aasaan","siteName":"Aasaan","title":"Create or update a product. - Aasaan","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-06T23:49:30.345Z","originalFileLocation":"backend-api/product/create-or-update-a-product.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new product or update existing product with this PUT operation.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aasaan\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create or update a product. - Aasaan\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new product or update existing product with this PUT operation.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aasaan\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.aasaan.app/backend-api/product/create-or-update-a-product\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aasaan.mintlify.app/_mintlify/api/og/v2?division=Product\u0026amp;title=Create+or+update+a++product.\u0026amp;description=Create+a+new+product+or+update+existing+product+with+this+PUT+operation.\u0026amp;theme=af106137a0faf7d9f76a257c\u0026amp;signature=de03f0dfe307a477451fce910f46f215d701829f9ba77c1329d555c4ad4af25c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create or update a product. - Aasaan\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new product or update existing product with this PUT operation.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aasaan.mintlify.app/_mintlify/api/og/v2?division=Product\u0026amp;title=Create+or+update+a++product.\u0026amp;description=Create+a+new+product+or+update+existing+product+with+this+PUT+operation.\u0026amp;theme=af106137a0faf7d9f76a257c\u0026amp;signature=de03f0dfe307a477451fce910f46f215d701829f9ba77c1329d555c4ad4af25c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/aasaan/4Cys8swax_TShW7o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aasaan\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#06B390\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.aasaan.app/backend-api/product/create-or-update-a-product\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/backend-api/product/create-or-update-a-product.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.aasaan.app/#organization\",\"name\":\"Aasaan\",\"url\":\"https://help.aasaan.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aasaan/Pj8mF7uTXkEd7VYt/logo.png?fit=max\u0026auto=format\u0026n=Pj8mF7uTXkEd7VYt\u0026q=85\u0026s=ee181737662dc85d3e531fa3a5ede21b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.aasaan.app#website\",\"name\":\"Aasaan\",\"url\":\"https://help.aasaan.app\",\"publisher\":{\"@id\":\"https://help.aasaan.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product#webpage\",\"url\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product\",\"name\":\"Create or update a product.\",\"description\":\"Create a new product or update existing product with this PUT operation.\",\"dateModified\":\"2026-01-06T23:49:30.345Z\",\"isPartOf\":{\"@id\":\"https://help.aasaan.app#website\"},\"breadcrumb\":{\"@id\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Product\",\"item\":\"https://help.aasaan.app/backend-api/product/get-all-products\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create or update a product.\",\"item\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product#apireference\",\"headline\":\"Create or update a product.\",\"name\":\"Create or update a product.\",\"description\":\"Create a new product or update existing product with this PUT operation.\",\"url\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product\",\"mainEntityOfPage\":{\"@id\":\"https://help.aasaan.app/backend-api/product/create-or-update-a-product#webpage\"},\"dateModified\":\"2026-01-06T23:49:30.345Z\",\"publisher\":{\"@id\":\"https://help.aasaan.app/#organization\"},\"isPartOf\":{\"@id\":\"https://help.aasaan.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aasaan\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Aasaan","nav":{"global":{"anchors":[{"anchor":"Connect to Shopify","href":"https://aasaan.app/connect/shopify/","icon":"shopify"},{"anchor":"Connect to Bigcommerce","href":"https://aasaan.app/connect/bigcommerce/","icon":"money-check-dollar"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/documentation/fundamentals/getting-set-up"}]},{"tab":"Backend API","groups":[{"group":"GETTING STARTED","pages":[{"title":"Introduction","href":"/backend-api/introduction"},{"title":"Authentication","href":"/backend-api/authentication"},{"title":"Versioning","href":"/backend-api/versioning"},{"title":"Errors","href":"/backend-api/errors"}]},{"group":"WEBHOOKS","pages":[{"title":"Introduction","href":"/backend-api/webhooks/introduction"},{"title":"Set Up Webhooks","href":"/backend-api/webhooks/setup_webhooks"},{"title":"Edit Webhooks","href":"/backend-api/webhooks/edit_webhooks"},{"title":"Sample Payload","href":"/backend-api/webhooks/sample_payload"}]},{"group":"Store","pages":[{"openapi":"get /","title":"Get Store Account Information","href":"/backend-api/store/get-store-account-information"}]},{"group":"Category","pages":[{"openapi":"get /categories","title":"Get all categories.","href":"/backend-api/category/get-all-categories"},{"openapi":"post /categories","title":"Create a new category.","href":"/backend-api/category/create-a-new-category"},{"openapi":"get /categories/{categoryId}","title":"Get a category by Id.","href":"/backend-api/category/get-a-category-by-id"},{"openapi":"put /categories/{categoryId}","title":"Put a category.","href":"/backend-api/category/put-a-category"},{"openapi":"delete /categories/{categoryId}","title":"Delete a Category.","href":"/backend-api/category/delete-a-category"},{"openapi":"patch /categories/{categoryId}","title":"Update a category.","href":"/backend-api/category/update-a-category"},{"openapi":"put /categories/","title":"Put multiple categories","href":"/backend-api/category/put-multiple-categories"}]},{"group":"Brand","pages":[{"openapi":"get /brands","title":"Get all brands.","href":"/backend-api/brand/get-all-brands"},{"openapi":"put /brands","title":"Put a multiple brands","href":"/backend-api/brand/put-a-multiple-brands"},{"openapi":"post /brands","title":"Create a new brand.","href":"/backend-api/brand/create-a-new-brand"},{"openapi":"get /brands/{brandId}","title":"Get a brand by Id.","href":"/backend-api/brand/get-a-brand-by-id"},{"openapi":"put /brands/{brandId}","title":"Put a brand.","href":"/backend-api/brand/put-a-brand"},{"openapi":"delete /brands/{brandId}","title":"Delete a brand.","href":"/backend-api/brand/delete-a-brand"},{"openapi":"patch /brands/{brandId}","title":"Update a brand.","href":"/backend-api/brand/update-a-brand"}]},{"group":"Product","pages":[{"openapi":"get /products","title":"Get all products.","href":"/backend-api/product/get-all-products"},{"openapi":"put /products","title":"Create or update multiple products.","href":"/backend-api/product/create-or-update-multiple-products"},{"openapi":"post /products","title":"Create a new product.","href":"/backend-api/product/create-a-new-product"},{"openapi":"get /products/{id}","title":"Get a product by id.","href":"/backend-api/product/get-a-product-by-id"},{"openapi":"patch /products/{id}","title":"Update a product.","description":"Update a product.","href":"/backend-api/product/update-a-product"},{"openapi":"put /products/{productId}","title":"Create or update a product.","href":"/backend-api/product/create-or-update-a-product"},{"openapi":"delete /products/{productId}","title":"Delete a Product.","description":"Delete a Product.","href":"/backend-api/product/delete-a-product"},{"openapi":"post /products/{productId}/variants/{variantId}","title":"Create a new Variant of the specified base product.","href":"/backend-api/product/create-a-new-variant-of-the-specified-base-product"},{"openapi":"patch /products/{productId}/variants/{variantId}","title":"Update a variant.","href":"/backend-api/product/update-a-variant"}]},{"group":"Orders","pages":[{"openapi":"get /orders","title":"Get all orders.","href":"/backend-api/orders/get-all-orders"},{"openapi":"get /orders/{orderId}","title":"Get an order info.","href":"/backend-api/orders/get-an-order-info"},{"openapi":"patch /orders/status/{orderId}","title":"Update a order status.","href":"/backend-api/orders/update-a-order-status"}]},{"group":"Channel","pages":[{"openapi":"get /channels","title":"Get all channels.","href":"/backend-api/channel/get-all-channels"},{"openapi":"get /channels/{id}","title":"Get a channel by Id.","href":"/backend-api/channel/get-a-channel-by-id"}]}]},{"tab":"Partner API","pages":[{"title":"Partner API","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Create or update a product. - Aasaan","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CS552b7R.js","utils-DDTCYAF2.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-De8ttokP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DrwRDvAh.js","snippetPresets-DtAN0nWx.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D5rWArI6.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-O2i12wsz.js","shallow-DV8xABTt.js","getApiPlaygroundDisplay-DBZ0B5Jx.js","CodeSnippet-BVi0tPUX.js","CodeSnippets-CqASbIwY.js","Page-m07pfKpT.js","getPastedJson-DG9vsMS8.js","icon-CXzRSCr8.js","MethodPill-BdKVtEuX.js","DuplicateIcon-CZlmBrJI.js","createIcon-biFEUKPL.js","DynamicMarkdown-B54_zNBF.js","SectionHeading-DwwHK3Pt.js","axios-vUo_bRtp.js","Markdown-DfhCTwyA.js","clsx-xpJZXxdP.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-BTZUMDnx.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-DqdKa2R4.js"]}