Is there a way to send an array of StockItem properties (including Attributes) so I can update more than one StockItem for each PUT operation? Currently, I’m using the following URL:
https://site.com/entity/Default/22.200.001/StockItem
The body that works for a single update consists of just one InventoryID:
{
"InventoryID": {
"value": "12-3456"
},
"Attributes":
{
"AttributeID": {
"value": "Color"
},
"Value": {
"value": ""
}
}
],
"Content": {},
"PriceClass": {
"value": "TESTCLASS"
},
"custom": {
"ItemSettings": {
"BaseItemWeight": {
"type": "CustomDecimalField",
"value": 2.000000
},
"BaseItemVolume": {
"type": "CustomDecimalField",
"value": 0.000000
}
}
}
}
I’ve tried putting an array ( .. ]) around this one set but I keep getting the following error:
{
"message": "The request is invalid.",
"modelState": {
"": o
"Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 1, position 1."
]
}
}