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

Name
Type
Description

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:

Field
Type
Description

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 recall

  • ExpiredProducts - Repository contains expired products

  • MislabelledGoods - Goods with incorrect labeling

  • RegulatoryHold - Regulatory authorities have placed a hold

  • AwaitingDocumentation - Required documentation is pending

  • InventoryDiscrepancies - Count discrepancies need resolution

  • HazardousMaterials - Special handling required for hazardous materials

  • CounterfeitGoods - Suspected counterfeit products present

  • SeasonalGoods - Seasonal restrictions apply

Return Fields

InventoryRepositoryMovementOutput:

Field
Type
Description

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: true to unblock a movement when conditions are resolved

  • Workflow 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

  1. Reassign Supervisor: Change who is responsible for overseeing the repository operation

  2. Update Priority: Mark a movement as critical for expedited processing

  3. Add Safety Requirements: Include additional safety protocols or equipment requirements

  4. Unblock Movement: Clear blocking conditions when regulatory or quality issues are resolved

  5. Schedule Timing: Set or update optimal timing for large-scale repository operations

  6. Resource Planning: Update equipment and staffing requirements based on scope changes

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?