您的收藏將由Collect objects組成,其中包含位置屬性。假設你正在使用CustomCollection的,你可以通過更新CustomCollection的修改收集的位置:http://api.shopify.com/customcollection.html#update
從例子中,要更新的集合,你可以使用:
PUT /admin/custom_collections/#{id}.json
用下面的有效載荷:
{
"custom_collection": {
"body_html": "<p>The best selling ipod ever</p>",
"handle": "ipods",
"id": 841564295,
"published_at": "2008-02-01T19:00:00-05:00",
"sort_order": "manual",
"template_suffix": null,
"title": "IPods",
"updated_at": "2008-02-01T19:00:00-05:00",
"image": {
"created_at": "2012-12-11T12:01:29-05:00",
"src": "http://cdn.shopify.com/s/files/1/0006/9093/3842/collections/ipod_nano_8gb.jpg?0"
},
"collects": [
{
"product_id": 921728736,
"position": 1
},
{
"id": 841564295,
"position": 2
}
]
}
}