# Bulk Edit Products and Prices

POST https://services.leadconnectorhq.com/products/bulk-update/edit

API to bulk edit products and their associated prices (max 30 entities)

## Authentication

None: this endpoint declares no security requirement, so no `Authorization` header is needed.

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "LeadConnector API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/products/bulk-update/edit": {
      "post": {
        "summary": "Bulk Edit Products and Prices",
        "operationId": "bulkEditProductsAndPrices",
        "description": "API to bulk edit products and their associated prices (max 30 entities)",
        "parameters": [
          {
            "name": "Version",
            "in": "header",
            "description": "API Version",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkEditRequestDto"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Products and prices updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkEditResponseDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestDTO"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedDTO"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableDTO"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      },
      "Agency-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "BulkEditRequestDto": {
        "type": "object",
        "properties": {
          "altId": {
            "type": "string",
            "description": "Location Id or Agency Id",
            "example": "6578278e879ad2646715ba9c"
          },
          "altType": {
            "type": "string",
            "enum": [
              "location"
            ]
          },
          "products": {
            "description": "Array of products to update. Note: The total count includes all prices within each product.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "_id": {
                  "type": "string",
                  "description": "Product ID",
                  "example": "64a1b2c3d4e5f67890123456"
                },
                "name": {
                  "type": "string",
                  "description": "Product name",
                  "example": "Premium Product"
                },
                "description": {
                  "type": "string",
                  "description": "Product description",
                  "example": "A high-quality premium product with excellent features and durability"
                },
                "image": {
                  "type": "string",
                  "description": "Product image",
                  "example": "https://example.com/product-image.jpg"
                },
                "availableInStore": {
                  "type": "boolean",
                  "description": "Product availability in store",
                  "example": true
                },
                "prices": {
                  "description": "Array of price variants for the product",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "_id": {
                        "type": "string",
                        "description": "Price ID",
                        "example": "64a1b2c3d4e5f67890123456"
                      },
                      "name": {
                        "type": "string",
                        "description": "Price name",
                        "example": "Standard Plan"
                      },
                      "amount": {
                        "type": "number",
                        "description": "Price amount",
                        "example": 99.99
                      },
                      "currency": {
                        "type": "string",
                        "description": "Price currency",
                        "example": "USD"
                      },
                      "compareAtPrice": {
                        "type": "number",
                        "description": "Compare at price",
                        "example": 129.99
                      },
                      "availableQuantity": {
                        "type": "number",
                        "description": "Available quantity",
                        "example": 100
                      },
                      "trackInventory": {
                        "type": "boolean",
                        "description": "Track inventory",
                        "example": true
                      },
                      "allowOutOfStockPurchases": {
                        "type": "boolean",
                        "description": "Allow out of stock purchases",
                        "example": false
                      },
                      "sku": {
                        "type": "string",
                        "description": "SKU",
                        "example": "SKU-001"
                      },
                      "trialPeriod": {
                        "type": "number",
                        "description": "Trial period in days",
                        "example": 7
                      },
                      "totalCycles": {
                        "type": "number",
                        "description": "Total billing cycles",
                        "example": 12
                      },
                      "setupFee": {
                        "type": "number",
                        "description": "Setup fee",
                        "example": 25
                      },
                      "shippingOptions": {
                        "description": "Shipping options",
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "weight": {
                                "description": "Weight options of the product",
                                "allOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "type": "number",
                                        "description": "Actual weight of the product",
                                        "example": 10
                                      },
                                      "unit": {
                                        "type": "string",
                                        "description": "Weight unit of the product",
                                        "example": "kg",
                                        "enum": [
                                          "kg",
                                          "lb",
                                          "g",
                                          "oz"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "value",
                                      "unit"
                                    ],
                                    "title": "WeightOptionsDto"
                                  }
                                ]
                              },
                              "dimensions": {
                                "description": "Dimensions of the product",
                                "allOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "height": {
                                        "type": "number",
                                        "description": "Height of the price",
                                        "example": 10
                                      },
                                      "width": {
                                        "type": "number",
                                        "description": "Width of the price",
                                        "example": 10
                                      },
                                      "length": {
                                        "type": "number",
                                        "description": "Length of the price",
                                        "example": 10
                                      },
                                      "unit": {
                                        "type": "string",
                                        "description": "Unit of the price dimensions",
                                        "example": "cm",
                                        "enum": [
                                          "cm",
                                          "in",
                                          "m"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "height",
                                      "width",
                                      "length",
                                      "unit"
                                    ],
                                    "title": "PriceDimensionsDto"
                                  }
                                ]
                              }
                            },
                            "title": "ShippingOptionsDto"
                          }
                        ]
                      },
                      "recurring": {
                        "description": "Recurring details",
                        "allOf": [
                          {
                            "type": "object",
                            "properties": {
                              "interval": {
                                "type": "string",
                                "description": "The interval at which the recurring event occurs.",
                                "example": "day",
                                "enum": [
                                  "day",
                                  "month",
                                  "week",
                                  "year"
                                ]
                              },
                              "intervalCount": {
                                "type": "number",
                                "description": "The number of intervals between each occurrence of the event.",
                                "example": 1
                              }
                            },
                            "required": [
                              "interval",
                              "intervalCount"
                            ],
                            "title": "RecurringDto"
                          }
                        ]
                      }
                    },
                    "required": [
                      "_id"
                    ],
                    "title": "BulkEditPriceDto"
                  }
                },
                "collectionIds": {
                  "description": "Collection IDs",
                  "example": [
                    "64a1b2c3d4e5f67890123458",
                    "64a1b2c3d4e5f67890123459"
                  ],
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "isLabelEnabled": {
                  "type": "boolean",
                  "description": "Enable product label",
                  "example": true
                },
                "isTaxesEnabled": {
                  "type": "boolean",
                  "description": "Enable taxes",
                  "example": true
                },
                "seo": {
                  "description": "SEO metadata for the product",
                  "allOf": [
                    {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string",
                          "description": "SEO title",
                          "example": "Best Product - Buy Now"
                        },
                        "description": {
                          "type": "string",
                          "description": "SEO description",
                          "example": "This is the best product you can buy online with amazing features and great value"
                        }
                      },
                      "title": "ProductSEODto"
                    }
                  ]
                },
                "slug": {
                  "type": "string",
                  "description": "Product URL slug",
                  "example": "premium-product"
                },
                "automaticTaxCategoryId": {
                  "type": "string",
                  "description": "Automatic tax category ID",
                  "example": "64a1b2c3d4e5f67890123460"
                },
                "taxInclusive": {
                  "type": "boolean",
                  "description": "Tax inclusive pricing",
                  "example": false
                },
                "taxes": {
                  "description": "Product taxes",
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "medias": {
                  "description": "Product media",
                  "type": "array",
                  "items": {
                    "type": "object"
                  }
                },
                "label": {
                  "type": "object",
                  "description": "Product label"
                }
              },
              "required": [
                "_id"
              ],
              "title": "BulkEditProductDto"
            }
          }
        },
        "required": [
          "altId",
          "altType",
          "products"
        ],
        "title": "BulkEditRequestDto"
      },
      "BulkEditResponseDto": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "example": "Products updated successfully",
            "description": "Success message"
          },
          "status": {
            "type": "boolean",
            "example": true,
            "description": "Operation status"
          },
          "updatedCount": {
            "type": "number",
            "example": 5,
            "description": "Number of products updated"
          }
        },
        "required": [
          "message",
          "status",
          "updatedCount"
        ],
        "title": "BulkEditResponseDto"
      },
      "BadRequestDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "type": "string",
            "example": "Bad Request"
          }
        },
        "title": "BadRequestDTO"
      },
      "UnauthorizedDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 401
          },
          "message": {
            "type": "string",
            "example": "Invalid token: access token is invalid"
          },
          "error": {
            "type": "string",
            "example": "Unauthorized"
          }
        },
        "title": "UnauthorizedDTO"
      },
      "UnprocessableDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 422
          },
          "message": {
            "example": [
              "Unprocessable Entity"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "example": "Unprocessable Entity"
          }
        },
        "title": "UnprocessableDTO"
      }
    }
  }
}
```

## Code Examples

**cURL**

```bash
curl -L -X POST 'https://services.leadconnectorhq.com/products/bulk-update/edit' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "altId": "6578278e879ad2646715ba9c",
  "products": [
    {
      "_id": "64a1b2c3d4e5f67890123456",
      "name": "Premium Product",
      "description": "A high-quality premium product with excellent features and durability",
      "image": "https://example.com/product-image.jpg",
      "availableInStore": true,
      "prices": [
        {
          "_id": "64a1b2c3d4e5f67890123456",
          "name": "Standard Plan",
          "amount": 99.99,
          "currency": "USD",
          "compareAtPrice": 129.99,
          "availableQuantity": 100,
          "trackInventory": true,
          "allowOutOfStockPurchases": false,
          "sku": "SKU-001",
          "trialPeriod": 7,
          "totalCycles": 12,
          "setupFee": 25,
          "shippingOptions": {
            "weight": {
              "value": 10,
              "unit": "kg"
            },
            "dimensions": {
              "height": 10,
              "width": 10,
              "length": 10,
              "unit": "cm"
            }
          },
          "recurring": {
            "interval": "day",
            "intervalCount": 1
          }
        }
      ],
      "collectionIds": [
        "64a1b2c3d4e5f67890123458",
        "64a1b2c3d4e5f67890123459"
      ],
      "isLabelEnabled": true,
      "isTaxesEnabled": true,
      "seo": {
        "title": "Best Product - Buy Now",
        "description": "This is the best product you can buy online with amazing features and great value"
      },
      "slug": "premium-product",
      "automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
      "taxInclusive": false,
      "taxes": [],
      "medias": []
    }
  ]
}'
```

**Node.js**

```javascript
const options = {
  method: 'POST',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
      "altId": "6578278e879ad2646715ba9c",
      "products": [
        {
          "_id": "64a1b2c3d4e5f67890123456",
          "name": "Premium Product",
          "description": "A high-quality premium product with excellent features and durability",
          "image": "https://example.com/product-image.jpg",
          "availableInStore": true,
          "prices": [
            {
              "_id": "64a1b2c3d4e5f67890123456",
              "name": "Standard Plan",
              "amount": 99.99,
              "currency": "USD",
              "compareAtPrice": 129.99,
              "availableQuantity": 100,
              "trackInventory": true,
              "allowOutOfStockPurchases": false,
              "sku": "SKU-001",
              "trialPeriod": 7,
              "totalCycles": 12,
              "setupFee": 25,
              "shippingOptions": {
                "weight": {
                  "value": 10,
                  "unit": "kg"
                },
                "dimensions": {
                  "height": 10,
                  "width": 10,
                  "length": 10,
                  "unit": "cm"
                }
              },
              "recurring": {
                "interval": "day",
                "intervalCount": 1
              }
            }
          ],
          "collectionIds": [
            "64a1b2c3d4e5f67890123458",
            "64a1b2c3d4e5f67890123459"
          ],
          "isLabelEnabled": true,
          "isTaxesEnabled": true,
          "seo": {
            "title": "Best Product - Buy Now",
            "description": "This is the best product you can buy online with amazing features and great value"
          },
          "slug": "premium-product",
          "automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
          "taxInclusive": false,
          "taxes": [],
          "medias": []
        }
      ]
  })
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/products/bulk-update/edit', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/products/bulk-update/edit"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

payload = {
    "altId": "6578278e879ad2646715ba9c",
    "products": [
        {
            "_id": "64a1b2c3d4e5f67890123456",
            "name": "Premium Product",
            "description": "A high-quality premium product with excellent features and durability",
            "image": "https://example.com/product-image.jpg",
            "availableInStore": true,
            "prices": [
                {
                    "_id": "64a1b2c3d4e5f67890123456",
                    "name": "Standard Plan",
                    "amount": 99.99,
                    "currency": "USD",
                    "compareAtPrice": 129.99,
                    "availableQuantity": 100,
                    "trackInventory": true,
                    "allowOutOfStockPurchases": false,
                    "sku": "SKU-001",
                    "trialPeriod": 7,
                    "totalCycles": 12,
                    "setupFee": 25,
                    "shippingOptions": {
                        "weight": {
                            "value": 10,
                            "unit": "kg"
                        },
                        "dimensions": {
                            "height": 10,
                            "width": 10,
                            "length": 10,
                            "unit": "cm"
                        }
                    },
                    "recurring": {
                        "interval": "day",
                        "intervalCount": 1
                    }
                }
            ],
            "collectionIds": [
                "64a1b2c3d4e5f67890123458",
                "64a1b2c3d4e5f67890123459"
            ],
            "isLabelEnabled": true,
            "isTaxesEnabled": true,
            "seo": {
                "title": "Best Product - Buy Now",
                "description": "This is the best product you can buy online with amazing features and great value"
            },
            "slug": "premium-product",
            "automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
            "taxInclusive": false,
            "taxes": [],
            "medias": []
        }
    ]
}

response = requests.post(url, json=payload, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/products/bulk-update/edit',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
    'Content-Type: application/json',
  ],
  CURLOPT_POSTFIELDS => '{
  "altId": "6578278e879ad2646715ba9c",
  "products": [
    {
      "_id": "64a1b2c3d4e5f67890123456",
      "name": "Premium Product",
      "description": "A high-quality premium product with excellent features and durability",
      "image": "https://example.com/product-image.jpg",
      "availableInStore": true,
      "prices": [
        {
          "_id": "64a1b2c3d4e5f67890123456",
          "name": "Standard Plan",
          "amount": 99.99,
          "currency": "USD",
          "compareAtPrice": 129.99,
          "availableQuantity": 100,
          "trackInventory": true,
          "allowOutOfStockPurchases": false,
          "sku": "SKU-001",
          "trialPeriod": 7,
          "totalCycles": 12,
          "setupFee": 25,
          "shippingOptions": {
            "weight": {
              "value": 10,
              "unit": "kg"
            },
            "dimensions": {
              "height": 10,
              "width": 10,
              "length": 10,
              "unit": "cm"
            }
          },
          "recurring": {
            "interval": "day",
            "intervalCount": 1
          }
        }
      ],
      "collectionIds": [
        "64a1b2c3d4e5f67890123458",
        "64a1b2c3d4e5f67890123459"
      ],
      "isLabelEnabled": true,
      "isTaxesEnabled": true,
      "seo": {
        "title": "Best Product - Buy Now",
        "description": "This is the best product you can buy online with amazing features and great value"
      },
      "slug": "premium-product",
      "automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
      "taxInclusive": false,
      "taxes": [],
      "medias": []
    }
  ]
}',
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .post("https://services.leadconnectorhq.com/products/bulk-update/edit")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .header("Content-Type", "application/json")
  .body("{\"altId\":\"6578278e879ad2646715ba9c\",\"products\":[{\"_id\":\"64a1b2c3d4e5f67890123456\",\"name\":\"Premium Product\",\"description\":\"A high-quality premium product with excellent features and durability\",\"image\":\"https://example.com/product-image.jpg\",\"availableInStore\":true,\"prices\":[{\"_id\":\"64a1b2c3d4e5f67890123456\",\"name\":\"Standard Plan\",\"amount\":99.99,\"currency\":\"USD\",\"compareAtPrice\":129.99,\"availableQuantity\":100,\"trackInventory\":true,\"allowOutOfStockPurchases\":false,\"sku\":\"SKU-001\",\"trialPeriod\":7,\"totalCycles\":12,\"setupFee\":25,\"shippingOptions\":{\"weight\":{\"value\":10,\"unit\":\"kg\"},\"dimensions\":{\"height\":10,\"width\":10,\"length\":10,\"unit\":\"cm\"}},\"recurring\":{\"interval\":\"day\",\"intervalCount\":1}}],\"collectionIds\":[\"64a1b2c3d4e5f67890123458\",\"64a1b2c3d4e5f67890123459\"],\"isLabelEnabled\":true,\"isTaxesEnabled\":true,\"seo\":{\"title\":\"Best Product - Buy Now\",\"description\":\"This is the best product you can buy online with amazing features and great value\"},\"slug\":\"premium-product\",\"automaticTaxCategoryId\":\"64a1b2c3d4e5f67890123460\",\"taxInclusive\":false,\"taxes\":[],\"medias\":[]}]}")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
  "strings"
)

func main() {
  url := "https://services.leadconnectorhq.com/products/bulk-update/edit"
  payload := strings.NewReader(`{
  "altId": "6578278e879ad2646715ba9c",
  "products": [
    {
      "_id": "64a1b2c3d4e5f67890123456",
      "name": "Premium Product",
      "description": "A high-quality premium product with excellent features and durability",
      "image": "https://example.com/product-image.jpg",
      "availableInStore": true,
      "prices": [
        {
          "_id": "64a1b2c3d4e5f67890123456",
          "name": "Standard Plan",
          "amount": 99.99,
          "currency": "USD",
          "compareAtPrice": 129.99,
          "availableQuantity": 100,
          "trackInventory": true,
          "allowOutOfStockPurchases": false,
          "sku": "SKU-001",
          "trialPeriod": 7,
          "totalCycles": 12,
          "setupFee": 25,
          "shippingOptions": {
            "weight": {
              "value": 10,
              "unit": "kg"
            },
            "dimensions": {
              "height": 10,
              "width": 10,
              "length": 10,
              "unit": "cm"
            }
          },
          "recurring": {
            "interval": "day",
            "intervalCount": 1
          }
        }
      ],
      "collectionIds": [
        "64a1b2c3d4e5f67890123458",
        "64a1b2c3d4e5f67890123459"
      ],
      "isLabelEnabled": true,
      "isTaxesEnabled": true,
      "seo": {
        "title": "Best Product - Buy Now",
        "description": "This is the best product you can buy online with amazing features and great value"
      },
      "slug": "premium-product",
      "automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
      "taxInclusive": false,
      "taxes": [],
      "medias": []
    }
  ]
}`)
  req, _ := http.NewRequest("POST", url, payload)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/products/bulk-update/edit")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"
request["Content-Type"] = "application/json"
request.body = '{
  "altId": "6578278e879ad2646715ba9c",
  "products": [
    {
      "_id": "64a1b2c3d4e5f67890123456",
      "name": "Premium Product",
      "description": "A high-quality premium product with excellent features and durability",
      "image": "https://example.com/product-image.jpg",
      "availableInStore": true,
      "prices": [
        {
          "_id": "64a1b2c3d4e5f67890123456",
          "name": "Standard Plan",
          "amount": 99.99,
          "currency": "USD",
          "compareAtPrice": 129.99,
          "availableQuantity": 100,
          "trackInventory": true,
          "allowOutOfStockPurchases": false,
          "sku": "SKU-001",
          "trialPeriod": 7,
          "totalCycles": 12,
          "setupFee": 25,
          "shippingOptions": {
            "weight": {
              "value": 10,
              "unit": "kg"
            },
            "dimensions": {
              "height": 10,
              "width": 10,
              "length": 10,
              "unit": "cm"
            }
          },
          "recurring": {
            "interval": "day",
            "intervalCount": 1
          }
        }
      ],
      "collectionIds": [
        "64a1b2c3d4e5f67890123458",
        "64a1b2c3d4e5f67890123459"
      ],
      "isLabelEnabled": true,
      "isTaxesEnabled": true,
      "seo": {
        "title": "Best Product - Buy Now",
        "description": "This is the best product you can buy online with amazing features and great value"
      },
      "slug": "premium-product",
      "automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
      "taxInclusive": false,
      "taxes": [],
      "medias": []
    }
  ]
}'

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$body = '{
  "altId": "6578278e879ad2646715ba9c",
  "products": [
    {
      "_id": "64a1b2c3d4e5f67890123456",
      "name": "Premium Product",
      "description": "A high-quality premium product with excellent features and durability",
      "image": "https://example.com/product-image.jpg",
      "availableInStore": true,
      "prices": [
        {
          "_id": "64a1b2c3d4e5f67890123456",
          "name": "Standard Plan",
          "amount": 99.99,
          "currency": "USD",
          "compareAtPrice": 129.99,
          "availableQuantity": 100,
          "trackInventory": true,
          "allowOutOfStockPurchases": false,
          "sku": "SKU-001",
          "trialPeriod": 7,
          "totalCycles": 12,
          "setupFee": 25,
          "shippingOptions": {
            "weight": {
              "value": 10,
              "unit": "kg"
            },
            "dimensions": {
              "height": 10,
              "width": 10,
              "length": 10,
              "unit": "cm"
            }
          },
          "recurring": {
            "interval": "day",
            "intervalCount": 1
          }
        }
      ],
      "collectionIds": [
        "64a1b2c3d4e5f67890123458",
        "64a1b2c3d4e5f67890123459"
      ],
      "isLabelEnabled": true,
      "isTaxesEnabled": true,
      "seo": {
        "title": "Best Product - Buy Now",
        "description": "This is the best product you can buy online with amazing features and great value"
      },
      "slug": "premium-product",
      "automaticTaxCategoryId": "64a1b2c3d4e5f67890123460",
      "taxInclusive": false,
      "taxes": [],
      "medias": []
    }
  ]
}'

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/products/bulk-update/edit' -Method 'POST' -Headers $headers -Body $body -ContentType 'application/json'
$response | ConvertTo-Json
```
