Update Inventory Item Movement

Update Inventory Item Movement Mutation

Updates an existing ItemMovement object in the system with new data.

Arguments

Name
Type
Description

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:

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

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 repository

  • REPOSITORY_LOCKED - Source or destination repository is locked

  • ITEM_RESERVED - Item is reserved for another operation

  • AUTHORIZATION_REQUIRED - Movement requires additional authorization

  • QUALITY_HOLD - Item is on quality hold

  • SYSTEM_MAINTENANCE - System is under maintenance

  • WORKFLOW_DEPENDENCY - Waiting for dependent workflow to complete

Return Fields

InventoryItemMovementOutput:

Field
Type
Description

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: true to unblock a movement

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

  1. Reassign Handler: Change who is responsible for executing the movement

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

  3. Add Instructions: Include special handling or safety instructions

  4. Unblock Movement: Clear blocking conditions when resolved

  5. Schedule Timing: Set or update when the movement should occur

Last updated

Was this helpful?