curl --request PUT \
--url https://services.leadconnectorhq.com/products/collections/{collectionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "LOCATION",
"name": "Best Sellers",
"slug": "best-sellers",
"image": "http://example.com/watermark.png",
"type": "manual",
"rules": {
"logic": "AND",
"conditions": [
"<array>"
]
},
"productIds": [
"655b33a82209e60b6adb87a5",
"655b33a82209e60b6adb87a6"
],
"seo": {
"title": "Best Sellers",
"description": "Collections where all the best products are available"
},
"ruleHash": "abc123def456",
"ruleVersion": 1,
"stats": {}
}
'{
"status": true,
"message": "Successfully created"
}Update a specific product collection with Id :collectionId
curl --request PUT \
--url https://services.leadconnectorhq.com/products/collections/{collectionId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
{
"altId": "6578278e879ad2646715ba9c",
"altType": "LOCATION",
"name": "Best Sellers",
"slug": "best-sellers",
"image": "http://example.com/watermark.png",
"type": "manual",
"rules": {
"logic": "AND",
"conditions": [
"<array>"
]
},
"productIds": [
"655b33a82209e60b6adb87a5",
"655b33a82209e60b6adb87a6"
],
"seo": {
"title": "Best Sellers",
"description": "Collections where all the best products are available"
},
"ruleHash": "abc123def456",
"ruleVersion": 1,
"stats": {}
}
'{
"status": true,
"message": "Successfully created"
}Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-07-28 MongoId of the collection
"65d71377c326ea78e1c47df5"
Location Id
"6578278e879ad2646715ba9c"
The type of alt. For now it is only LOCATION
location "LOCATION"
Name of the Product Collection
"Best Sellers"
Slug of the Product Collection which helps in navigation
"best-sellers"
The URL of the image that is going to be displayed as the collection Thumbnail
"http://example.com/watermark.png"
Type of collection - manual or smart
manual, smart "manual"
Show child attributes
Array of product IDs for manual collections (replaces existing products)
[
"655b33a82209e60b6adb87a5",
"655b33a82209e60b6adb87a6"
]Show child attributes
Hash of the rules for change detection (auto-generated)
"abc123def456"
Version of the rules for smart collections (auto-generated)
1
Statistics about the collection (auto-generated)
Was this page helpful?