Version: 202607
Create collect
POST/openapi/2026-07/collects
Associates a product with a collection by creating a collect object.
Request
- application/json
- Body
- Example
Bodyrequired
collect objectrequired
Collect (product-collection relation)
collection_idstringrequired
Collection ID
product_idstringrequired
Product ID
{
"collect": {
"collection_id": "string",
"product_id": "string"
}
}
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
collect object
Collect (product-collection relation)
idstring
Collect ID
collection_idstring
Identifier of the associated collection
product_idstring
Identifier of the associated product
positionint64
Position of the product in the collection
created_atstring
Timestamp when the collect was created
updated_atstring
Timestamp when the collect was last updated
{
"code": "string",
"message": "string",
"data": {
"collect": {
"id": "string",
"collection_id": "string",
"product_id": "string",
"position": 0,
"created_at": "string",
"updated_at": "string"
}
}
}