productAddCompositionLines
Adds composition lines to a composed product, defining which component products are required to construct the main product.
This mutation creates relationships between a composed product and its component products, specifying quantities, sorting order, and whether components are optional. Each composition line represents a single component with its configuration.
The operation is processed asynchronously via background job to handle large composition sets efficiently. The mutation validates that:
- The specified product exists and can be composed
- All component products exist and are valid for composition
- Component quantities are greater than zero
- Component types are compatible with the composed product type
Returns an asynchronous response with processing status and job ID for tracking. Use the process_id to monitor job completion and retrieve results.
productAddCompositionLines(
input: AddCompositionLinesInput!
): AsynchronousActionResponse!
Arguments
productAddCompositionLines.input ● AddCompositionLinesInput! non-null input
Parameters for AddCompositionLines
Type
AsynchronousActionResponse object
Asynchronous action response type