updateWarehouseStock

Topics: Logistics

Patch an existing warehouse stock record in the caller's tenant. Returns an id error when the record does not exist, or validation errors when the patched quantities are invalid. Emits a warehouse-stock updated event. Requires write access to warehouse stock.

Returns

WarehouseStockPayload!

Arguments

WarehouseStock TypeID (wst_…) of the record to patch.

Fields to change; omitted fields keep their current value.

Exact field SDL
"""
Patch an existing warehouse stock record in the caller's tenant. Returns an `id` error when the record does not exist, or validation errors when the patched quantities are invalid. Emits a warehouse-stock updated event. Requires write access to warehouse stock.
"""
updateWarehouseStock(
  """WarehouseStock TypeID (`wst_…`) of the record to patch."""
  id: WarehouseStockID!
  """Fields to change; omitted fields keep their current value."""
  input: UpdateWarehouseStockInput!
): WarehouseStockPayload! @topic(names: ["logistics"])

Declared on Mutation. Access is checked by the platform for each operation.