Update Stock Lot
POST
/admin/stock-lots/{id}
const url = 'http://localhost:9000/admin/stock-lots/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"inventory_item_id":"example","stock_location_id":"example","lot_number":"example","description":"example","enabled":true,"stocked_quantity":1,"metadata":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/stock-lots/example \ --header 'Content-Type: application/json' \ --data '{ "inventory_item_id": "example", "stock_location_id": "example", "lot_number": "example", "description": "example", "enabled": true, "stocked_quantity": 1, "metadata": {} }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
inventory_item_id
string
stock_location_id
string
lot_number
string
description
string
enabled
boolean
stocked_quantity
number
metadata
object
key
additional properties
any
Example generated
{ "inventory_item_id": "example", "stock_location_id": "example", "lot_number": "example", "description": "example", "enabled": true, "stocked_quantity": 1, "metadata": {}}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}