Update Inventory Repository

Update Inventory Repository Mutation

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

Arguments

Name
Type
Description

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:

Field
Type
Description

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

parentID

UUID

ID of the parent repository (for hierarchical structures)

clearParentID

Boolean

Clear the parent repository association

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 (e.g., warehouse, shelf, bin)

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:

Field
Type
Description

inventoryRepository

Repository

The updated repository

workflows

[TemporalWorkflow]

Related workflow instances that were triggered

Repository Types

Common repository types include:

  • warehouse - Main storage facility

  • zone - Area within a warehouse

  • aisle - Row within a zone

  • shelf - Storage shelf

  • bin - Individual storage container

  • staging - Temporary staging area

  • dock - Loading/unloading area

Usage Example

JavaScript Example

Important Notes

  • Hierarchy Changes: Updating the parentID changes the repository's position in the storage hierarchy

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

Last updated

Was this helpful?