Update InventoryItem 422 Unprocessable Entity

egilmore533
Visitor
2 0 0

I've got a script that creates new products and updates variants. The vast majority of the products in my store do not require shipping so I'd like to turn it off, but when attempting to update the InventoryItem I get a 422 Error. I've been reading up on documentation, but I'm still not sure what I'm missing here in the request to update the InventoyItem. Perhaps there's something on the variant or product that I'm overlooking. Any help is appreciated. 

 

I'm sending a PUT request with the following 

 

$params = [
"inventory_item" => [
"id" => $inventoryItemID,
"tracked" => true,
"requires_shipping" => false,
]
];

 

 

Replies 0 (0)