Update Inventory Repository Movement
Update Inventory Repository Movement Mutation
Updates an existing RepositoryMovement object in the system with new data. Repository movements represent operations that affect entire repositories, such as consolidations, reorganizations, or bulk transfers.
Arguments
id
ID!
The unique identifier of the repository movement to update
input
UpdateRepositoryMovementInput!
Input data for updating the repository movement
Return Type
InventoryRepositoryMovementOutput - Contains the updated repository movement and any related workflows.
Input Fields
UpdateRepositoryMovementInput:
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
RepositoryMovementBlockedBy
Reason why the movement is blocked (if applicable)
clearBlockedBy
Boolean
Clear the blocked status
RepositoryMovementBlockedBy Options
Possible reasons why a repository movement might be blocked:
RecalledProducts- Products in repository are subject to recallExpiredProducts- Repository contains expired productsMislabelledGoods- Goods with incorrect labelingRegulatoryHold- Regulatory authorities have placed a holdAwaitingDocumentation- Required documentation is pendingInventoryDiscrepancies- Count discrepancies need resolutionHazardousMaterials- Special handling required for hazardous materialsCounterfeitGoods- Suspected counterfeit products presentSeasonalGoods- Seasonal restrictions apply
Return Fields
InventoryRepositoryMovementOutput:
inventoryRepositoryMovement
RepositoryMovement
The updated repository movement
workflows
[TemporalWorkflow]
Related workflow instances that were triggered
Usage Example
JavaScript Example
Important Notes
Movement State: Only non-executed repository movements can be updated
Handler Assignment: Updating the handler reassigns responsibility for the repository operation
Blocked Status: Use
clearBlockedBy: trueto unblock a movement when conditions are resolvedWorkflow Impact: Updates may trigger workflows for resource allocation, scheduling, or safety notifications
Data Validation: The system validates that movement parameters are consistent with repository types and business rules
Audit Tracking: All updates to repository movements are logged for audit purposes
Scale Impact: Repository movements typically affect large quantities of inventory
Common Update Scenarios
Reassign Supervisor: Change who is responsible for overseeing the repository operation
Update Priority: Mark a movement as critical for expedited processing
Add Safety Requirements: Include additional safety protocols or equipment requirements
Unblock Movement: Clear blocking conditions when regulatory or quality issues are resolved
Schedule Timing: Set or update optimal timing for large-scale repository operations
Resource Planning: Update equipment and staffing requirements based on scope changes
Related Operations
After updating a repository movement, you may need to:
Update related item movements within the affected repositories
Adjust resource allocation and scheduling
Notify affected staff and stakeholders
Update safety protocols and equipment reservations
Last updated
Was this helpful?
