Update Inventory Item Movement
Update Inventory Item Movement Mutation
Updates an existing ItemMovement object in the system with new data.
Arguments
id
ID!
The unique identifier of the item movement to update
input
UpdateItemMovementInput!
Input data for updating the item movement
Return Type
InventoryItemMovementOutput - Contains the updated item movement and any related workflows.
Input Fields
UpdateItemMovementInput:
dataTypeID
UUID
Optional data type ID to associate with the movement
clearDataTypeID
Boolean
Clear the existing data type ID
dataTypeSlug
String
Optional data type slug
clearDataTypeSlug
Boolean
Clear the existing data type slug
data
Map
Custom data associated with the movement
clearData
Boolean
Clear the existing custom data
handler
String
Handler responsible for processing the movement
blockedBy
ItemMovementBlockedBy
Reason why the movement is blocked (if applicable)
clearBlockedBy
Boolean
Clear the blocked status
ItemMovementBlockedBy Options
Possible reasons why an item movement might be blocked:
INSUFFICIENT_STOCK- Not enough stock in the source repositoryREPOSITORY_LOCKED- Source or destination repository is lockedITEM_RESERVED- Item is reserved for another operationAUTHORIZATION_REQUIRED- Movement requires additional authorizationQUALITY_HOLD- Item is on quality holdSYSTEM_MAINTENANCE- System is under maintenanceWORKFLOW_DEPENDENCY- Waiting for dependent workflow to complete
Return Fields
InventoryItemMovementOutput:
inventoryItemMovement
ItemMovement
The updated item movement
workflows
[TemporalWorkflow]
Related workflow instances that were triggered
Usage Example
JavaScript Example
Important Notes
Movement State: Only non-executed movements can be updated
Handler Assignment: Updating the handler reassigns responsibility for the movement
Blocked Status: Use
clearBlockedBy: trueto unblock a movementWorkflow Impact: Updates may trigger workflows for scheduling, resource allocation, or notifications
Data Validation: The system validates that movement parameters are consistent with business rules
Audit Tracking: All updates to movements are logged for audit purposes
Common Update Scenarios
Reassign Handler: Change who is responsible for executing the movement
Update Priority: Mark a movement as high priority for expedited processing
Add Instructions: Include special handling or safety instructions
Unblock Movement: Clear blocking conditions when resolved
Schedule Timing: Set or update when the movement should occur
Last updated
Was this helpful?
