curl --location -g --request POST '{{BASE_URL}}/admin/products//variants/inventory-items/batch' \
--header 'Content-Type: application/json' \
--data-raw '{
"delete": [
{
"inventory_item_id": "string",
"variant_id": "string"
}
],
"create": [
{
"required_quantity": 0,
"inventory_item_id": "string",
"variant_id": "string"
}
],
"update": [
{
"required_quantity": 0,
"inventory_item_id": "string",
"variant_id": "string"
}
]
}'
{
"created": {
"Product": {
"variant_id": "string"
},
"Inventory": {
"inventory_item_id": "string"
}
},
"updated": {
"Product": {
"variant_id": "string"
},
"Inventory": {
"inventory_item_id": "string"
}
},
"deleted": {
"Product": {
"variant_id": "string"
},
"Inventory": {
"inventory_item_id": "string"
}
}
}
required_quantity
. When the customer orders the quantity, Medusa reserves the ordered quantity multiplied by the value set for required_quantity
.required_quantity
. When the customer orders the quantity, Medusa reserves the ordered quantity multiplied by the value set for required_quantity
.