HI,there
you could run the productVariantsBulkCreate mutation with a strategy of REMOVE_STANDALONE_VARIANT and only create one vairant.
mutation productVariantsBulkCreate {
productVariantsBulkCreate(
productId: "gid://shopify/Product/1234",
strategy: REMOVE_STANDALONE_VARIANT,
variants: [
# Variants to be created
]
)
}