# 批量切换展品上下线状态
# 调用方式: PUT
# 接口地址:
https://api.freelog.com/v2/presentables/updatePresentableOnlineStatusBatch
1
# body传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
presentableIds | 必选 | string[] | 展品ID数组 |
onlineStatus | 必选 | int | 上线状态 0:下线 1:上线 |
# body示例
{
"presentableIds": ["65b21b91d1ee901f14955c31"],
"onlineStatus":1
}
1
2
3
4
2
3
4
# 返回示例
返回值是key-value键值对,key是更新展品的展品ID,status=1表示更新成功,status=2表示更新失败
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": {
"65b21b91d1ee901f14955c31": {
"status": 1
}
}
}
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11