Appearance
UpdateWarehouseStockInput
Type: Input
Patch input for updateWarehouseStock: only the fields supplied are applied to the existing record; omitted fields keep their current value.
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| batchNumber | String | New batch/lot number. Omit to leave unchanged — this patch cannot clear an existing value. | |
| expiryDate | ISO8601 | New ISO-8601 expiry timestamp for the batch. Omit to leave unchanged — this patch cannot clear an existing value. | |
| lastCountedAt | ISO8601 | ISO-8601 timestamp of the physical count this update records. Omit to leave unchanged — this patch cannot clear an existing value. | |
| locationId | WarehouseLocationID | Move the stock to this WarehouseLocation TypeID (wlc_…). Omit to leave the location unchanged. | |
| notes | String | New operator notes. Omit to leave unchanged — this patch cannot clear an existing value. | |
| quantity | Float | New quantity on hand, in the record's unit. Must not be negative, and must not drop below the record's reserved quantity. Omit to leave unchanged. | |
| reservedQuantity | Float | New quantity committed to jobs. Must be between 0 and the record's quantity. Omit to leave unchanged. | |
| stockableId | String | Re-point the record at a different catalog entity of stockableType (its TypeID). Omit to leave unchanged. | |
| stockableType | StockableType | Re-point the record at a different kind of stockable item. Omit to leave unchanged; normally changed together with stockableId. | |
| unit | MeasurementUnit | New unit of measure for the record's quantities (quantities are not converted). Omit to leave unchanged. |