Create Product Collection
POST/products/collections
Create a new Product Collection for a specific location
Request
Version stringrequired
API Version
Available options
v3- application/json
- Body
- Example (auto)
Bodyrequired
altIdstringrequired
Location Id
altTypestringrequired
The type of alt. For now it is only LOCATION
Available options
locationcollectionIdstring
Unique Identifier of the Product Collection, Mongo Id
namestringrequired
Name of the Product Collection
slugstringrequired
Slug of the Product Collection which helps in navigation
imagestring
The URL of the image that is going to be displayed as the collection Thumbnail
seoobject
The metadata information which will be displayed in SEO previews
{
"altId": "6578278e879ad2646715ba9c",
"altType": "LOCATION",
"collectionId": "66057f9d28536eae584ec047",
"name": "Best Sellers",
"slug": "best-sellers",
"image": "http://example.com/watermark.png",
"seo": {
"title": "Best Sellers",
"description": "Collections where all the best products are available"
}
}
Successful response
- application/json
- Schema
- Example (auto)
Schema
dataobjectrequired
created Collection
{
"data": {
"_id": "655b33a82209e60b6adb87a5",
"altId": "Z4Bxl8J4SaPEPLq9IQ8g",
"name": "Best Sellers",
"slug": "best-sellers",
"image": "http://example.com/watermark.png",
"seo": {
"title": "Best Sellers",
"description": "Collections where all the best products are available"
},
"createdAt": "2024-02-22T09:27:19.728Z"
}
}