← API reference
CANONICAL TYPE REFERENCE

UpdateWarehouseStockInput

Patch input for updateWarehouseStock: only the fields supplied are applied to the existing record; omitted fields keep their current value.

Associate an existing material lot belonging to this tenant

Move the stock to this WarehouseLocation TypeID (wlc_…). Omit to leave the location unchanged.

Re-point the record at a different kind of stockable item. Omit to leave unchanged; normally changed together with stockableId.

Re-point the record at a different catalog entity of stockableType (its TypeID). Omit to leave unchanged.

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.

New unit of measure for the record's quantities (quantities are not converted). Omit to leave unchanged.

New quantity committed to jobs. Must be between 0 and the record's quantity. Omit to leave unchanged.

New batch/lot number. Omit to leave unchanged — this patch cannot clear an existing value.

New ISO-8601 expiry timestamp for the batch. Omit to leave unchanged — this patch cannot clear an existing value.

ISO-8601 timestamp of the physical count this update records. Omit to leave unchanged — this patch cannot clear an existing value.

notesString

New operator notes. Omit to leave unchanged — this patch cannot clear an existing value.

View exact SDL
"""
Patch input for `updateWarehouseStock`: only the fields supplied are applied to the existing record; omitted fields keep their current value.
"""
input UpdateWarehouseStockInput {
  """Associate an existing material lot belonging to this tenant"""
  materialLotId: MaterialLotID
  """
  Move the stock to this WarehouseLocation TypeID (`wlc_…`). Omit to leave the location unchanged.
  """
  locationId: WarehouseLocationID
  """
  Re-point the record at a different kind of stockable item. Omit to leave unchanged; normally changed together with `stockableId`.
  """
  stockableType: StockableType
  """
  Re-point the record at a different catalog entity of `stockableType` (its TypeID). Omit to leave unchanged.
  """
  stockableId: String
  """
  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.
  """
  quantity: Float
  """
  New unit of measure for the record's quantities (quantities are not converted). Omit to leave unchanged.
  """
  unit: MeasurementUnit
  """
  New quantity committed to jobs. Must be between 0 and the record's quantity. Omit to leave unchanged.
  """
  reservedQuantity: Float
  """
  New batch/lot number. Omit to leave unchanged — this patch cannot clear an existing value.
  """
  batchNumber: String
  """
  New ISO-8601 expiry timestamp for the batch. Omit to leave unchanged — this patch cannot clear an existing value.
  """
  expiryDate: ISO8601
  """
  ISO-8601 timestamp of the physical count this update records. Omit to leave unchanged — this patch cannot clear an existing value.
  """
  lastCountedAt: ISO8601
  """
  New operator notes. Omit to leave unchanged — this patch cannot clear an existing value.
  """
  notes: String
}

One stable address across all schema views. Follow a field’s type to explore connections between domains.