Update Picking Order Item
updatePickingOrderItem Mutation
Updates an existing picking order item with new data. This allows modification of item details such as quantity, SKU, and custom data.
Arguments
id
ID!
Required ID of the picking order item to update
input
UpdatePickingOrderItemInput!
Input data for updating the picking order item
Return Type
PickingOrderItemOutput - Contains the updated picking order item and any associated workflows.
Input Fields
UpdatePickingOrderItemInput:
dataTypeID
UUID
Optional data type ID for custom validation
clearDataTypeID
Boolean
Clear the current data type ID
dataTypeSlug
String
Optional data type slug for custom validation
clearDataTypeSlug
Boolean
Clear the current data type slug
data
Map
Custom data associated with the order item
clearData
Boolean
Clear all custom data
sku
String
Stock keeping unit (SKU) of the item
quantity
Int
Quantity of the item to pick
orderID
ID
ID of the picking order this item belongs to
Usage Example
JavaScript Example
Clearing Data Example
You can also clear specific fields using the clear flags:
Changing Order Association
You can also move an item to a different picking order:
Notes
The picking order item must exist and be accessible to the current user
Updates may trigger associated workflows depending on system configuration
Use clear flags (e.g.,
clearData,clearDataTypeID) to explicitly remove dataThe
quantitymust be a positive integer if providedThe
skushould correspond to a valid inventory item if providedChanging the
orderIDmoves the item to a different picking orderSome fields may not be editable if the item's picking order is in certain workflow states
Custom
datacan include any JSON-serializable information relevant to the item
Last updated
Was this helpful?
