Update Receiving Inbound Item

updateReceivingInboundItem Mutation

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

Arguments

Name
Type
Description

id

ID!

The unique identifier of the receiving inbound item to update

input

UpdateReceivingInboundItemInput!

Input data for updating the receiving inbound item

Return Type

ReceivingInboundItemOutput - Contains the updated receiving inbound item and any associated workflows.

Input Fields

UpdateReceivingInboundItemInput:

Field
Type
Description

dataTypeID

UUID

Optional data type ID to associate with the item

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 item

clearData

Boolean

Clear the existing custom data

sku

String

Stock keeping unit (SKU) - unique identifier for the item

quantity

Int

Quantity of the item expected to be received

inboundID

ID

ID of the receiving inbound this item belongs to

Return Fields

ReceivingInboundItemOutput:

Field
Type
Description

receivingInboundItem

ReceivingInboundItem

The updated receiving inbound item

workflows

[TemporalWorkflow]

Related workflow instances that were triggered

Usage Example

JavaScript Example

Important Notes

  • Updating a receiving inbound item may trigger related workflows for inventory management

  • Use the clear flags to explicitly remove optional fields

  • The data field supports flexible JSON structures for item-specific metadata

  • Changes to the quantity field may affect stock calculations and workflows

  • The sku should remain unique and consistent with the inventory system

  • Moving an item to a different inbound can be done by updating the inboundID

Last updated

Was this helpful?