← API reference
Mutation / logistics

updateWarehouseStock

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.

Arguments

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

Fields to change; omitted fields keep their current value.

Returns WarehouseStockPayload!

Explore in a view

Fulfillment
View exact 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"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.