# 批量为展品合集添加单品

# 调用方式: POST

# 接口地址:

https://api.freelog.com/v2/presentables/catalogues/{presentbaleId}/items
1

# url传入参数说明:

参数 必选 类型及范围 说明
presentableId 必选 string 合集展品ID

# body传入参数说明:

参数 必选 类型及范围 说明
addCollectionItems 必选 object[] 批量添加单品
** presentableId 必选 string 待添加到合集的展品ID

# body示例

{
    "addCollectionItems": [
        {
            "presentableId": "66627752cf9929002f7a2629"
        },
        {
            "presentableId": "6600e2a762857a00307f1b2b"  
        } 
    ]
}
1
2
3
4
5
6
7
8
9
10

# 返回说明:

返回值字段 字段类型 字段说明
addSuccessfulItems object[] 成功加入合集的单品集
**itemTitle string 单品标题
**presentableId strubg 展品ID
addFailedItems object[] 加入合集失败的单品集
**presentableId string 展品ID
**reason string 失败原因
ignoreItems object[] 忽略的单品集(此前已经存在合集中)
**itemTitle string 单品标题
**presentableId strubg 展品ID

# 返回示例

{
    "ret": 0,
    "errCode": 0,
    "errcode": 0,
    "msg": "success",
    "data": {
        "addSuccessfulItems": [
            {
                "presentableId": "66627752cf9929002f7a2629",
                "itemTitle": "duck"
            }
        ],
        "addFailedItems": [
            {
                "presentableId": "66627752cf9929002f7a2621",
                "reason": "展品不存在"
            }
        ],
        "ignoreItems": [
             {
                "presentableId": "6600e2a762857a00307f1b2b",
                "itemTitle": "水电费第三方"
            }
        ]
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26