Skip to main content

ProductUpdateCompositionLineInput

Input for managing composition lines inline during product update. Supports creating, updating, and deleting composition lines.

  • **Create**: Provide componentId and quantity (omit id)
  • **Update**: Provide id and the fields to change
  • **Delete**: Provide id and set delete to true
input ProductUpdateCompositionLineInput {
componentId: ID
delete: Boolean
id: ID
optional: Boolean
quantity: Int
sortOrder: Int
}

Fields​

ProductUpdateCompositionLineInput.componentId ● ID scalar common​

The component product ID. Required when creating a new composition line.

ProductUpdateCompositionLineInput.delete ● Boolean scalar common​

Set to true to remove this composition line.

ProductUpdateCompositionLineInput.id ● ID scalar common​

The composition line ID. Required for updating or deleting existing lines.

ProductUpdateCompositionLineInput.optional ● Boolean scalar common​

Whether this component is optional in the composition.

ProductUpdateCompositionLineInput.quantity ● Int scalar common​

The quantity of the component in this composition.

ProductUpdateCompositionLineInput.sortOrder ● Int scalar common​

The display order of this line in the composition.

Member Of​

ProductUpdateInput input ● UpdateProductInput input