版本:202607
创建集合关联
POST/openapi/2026-07/collects
将商品关联到指定集合。
请求
- application/json
- 请求体
- 示例
请求体必填
collect object必填
关联记录(商品-集合关系)
collection_idstring必填
集合 ID
product_idstring必填
商品 ID
{
"collect": {
"collection_id": "string",
"product_id": "string"
}
}
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
codestring
错误码
messagestring
错误信息
data object
collect object
关联记录(商品-集合关系)
idstring
关联记录 ID
collection_idstring
关联集合的标识符
product_idstring
关联商品的标识符
positionint64
商品在集合中的位置
created_atstring
关联记录的创建时间
updated_atstring
关联记录的最后更新时间
{
"code": "string",
"message": "string",
"data": {
"collect": {
"id": "string",
"collection_id": "string",
"product_id": "string",
"position": 0,
"created_at": "string",
"updated_at": "string"
}
}
}