Add a variant to variable product

Here's how to add variant to variable product via API.

Both products must exist before this operation.

mutation {
  productVariableAddVariant(input: { sku: "SKU_VAR_PRODUCT", variantSku: "SKU_test2" }) {
    __typename
  }
}

Last updated