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

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

ProductUpdateCompositionLineInput.delete ● Boolean scalar

Set to true to remove this composition line.

ProductUpdateCompositionLineInput.id ● ID scalar

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

ProductUpdateCompositionLineInput.optional ● Boolean scalar

Whether this component is optional in the composition.

ProductUpdateCompositionLineInput.quantity ● Int scalar

The quantity of the component in this composition.

ProductUpdateCompositionLineInput.sortOrder ● Int scalar

The display order of this line in the composition.

Member Of

ProductUpdateInput input ● UpdateProductInput input