Update Inventory Repository
Update Inventory Repository Mutation
Updates an existing Repository object in the system with new data.
Arguments
id
ID!
The unique identifier of the repository to update
input
UpdateRepositoryInput!
Input data for updating the repository
Return Type
InventoryRepositoryOutput - Contains the updated repository and any related workflows.
Input Fields
UpdateRepositoryInput:
dataTypeID
UUID
Optional data type ID to associate with the repository
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 repository
clearData
Boolean
Clear the existing custom data
locationID
UUID
Location ID
clearLocationID
Boolean
Clear the location ID
name
String
Name of the repository
layout
String
Layout configuration for the repository
clearLayout
Boolean
Clear the existing layout configuration
type
RepositoryType
Type of repository (dynamic or static)
parentID
ID
ID of the parent repository (edge reference)
clearParent
Boolean
Clear the parent repository association
addChildIDs
[ID!]
IDs of child repositories to add
removeChildIDs
[ID!]
IDs of child repositories to remove
clearChildren
Boolean
Clear all child repository associations
addItemMovementToRepositoryIDs
[ID!]
IDs of item movements (incoming) to add
removeItemMovementToRepositoryIDs
[ID!]
IDs of item movements (incoming) to remove
clearItemMovementToRepositories
Boolean
Clear all incoming item movements
addItemMovementFromRepositoryIDs
[ID!]
IDs of item movements (outgoing) to add
removeItemMovementFromRepositoryIDs
[ID!]
IDs of item movements (outgoing) to remove
clearItemMovementFromRepositories
Boolean
Clear all outgoing item movements
addRepositoryMovementToRepositoryIDs
[ID!]
IDs of repository movements (incoming) to add
removeRepositoryMovementToRepositoryIDs
[ID!]
IDs of repository movements (incoming) to remove
Return Fields
InventoryRepositoryOutput:
inventoryRepository
Repository
The updated repository
workflows
[TemporalWorkflow]
Related workflow instances that were triggered
Repository Types
Common repository types include:
warehouse- Main storage facilityzone- Area within a warehouseaisle- Row within a zoneshelf- Storage shelfbin- Individual storage containerstaging- Temporary staging areadock- Loading/unloading area
Usage Example
JavaScript Example
Breaking Changes
The following breaking changes were introduced in this version:
parentID field type changed: The
parentIDfield changed fromUUIDtoID(edge reference).clearParentID renamed to clearParent: The field to clear the parent association has been renamed from
clearParentIDtoclearParent.New child management fields: Added
addChildIDs,removeChildIDs, andclearChildrenfields for managing child repository relationships.
Usage Example: Managing Parent-Child Relationships
Set a Parent Repository
Clear Parent Association
Add Child Repositories
Remove Child Repositories
Important Notes
Hierarchy Changes: Updating the
parentIDchanges the repository's position in the storage hierarchyLayout Updates: Changing the layout may affect how items are organized within the repository
Workflow Triggers: Updates may trigger workflows for capacity planning or reorganization
Movement Associations: Be careful when modifying movement associations as it affects inventory tracking
Data Validation: The system validates that repository configurations are consistent with business rules
Child Management: Use
addChildIDsandremoveChildIDsto manage child repositories. UsingclearChildrenwill disassociate all child repositories.
Last updated
Was this helpful?
