Using the Shopify API, you cannot use cart / change.js to change position properties. The reason is that cart / change.js uses "properties" to find the position you need. The API documentation does not. Here is an example:
When I do a POST in cart / add.js with the following URL encoded parameters:
quantity=9403&id=278440178&properties%5Bmy-property%5D=property%20BAR
The answer will include
"properties":{"my-property":"property BAR"}
POST cart/change.js, BAR FOO,
id=278440178&properties%5Bmy-property%5D=property%20FOO
,
"properties":{"my-property":"property BAR"}
, . , , API cart/change.js - , .
, , POST cart/change.js quantity=0, :
quantity=0&id=278440178&properties%5Bmy-property%5D=property%20FOO
property FOO , ( property BAR), . , , :
POST: quantity=0&id=278440178&properties%5Bmy-property%5D=property%20BAR
.
: cart/change.js, shopify , 'id', , . , cart/change.js , .