inventory_models
Update an inventory model
Changed onUpdate an inventory model
patch/inventory_models/{inventoryModelId}
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/inventory_models/{inventoryModelId}
- AuthHTTP bearer
Path parameters
inventoryModelIdstring required
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"name": "EU Inventory Model",
"strategy": "no_split",
"stock_locations_cutoff": 3,
"stock_reservation_cutoff": 3600,
"put_stock_transfers_on_hold": true,
"manual_stock_decrement": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Response
The updated inventory model object
Changes
- breaking
request property
/was restricted to a list of enum values - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valueinventory_modelswas removed - info
added the new
inventory_modelsenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking