- Symptom
- Created product shows a single Default Title variantCode that sent variants inside the productCreate input breaks after moving to a newer API versionREST POST /products.json is marked deprecated in the reference
- Cause
- Since the 2024-04 product model, productCreate only makes the product and its first variant. Other variants go through productVariantsBulkCreate or productSet, and REST product create and list calls are deprecated.
- Fix
- Create the product with its options, then add variants with productVariantsBulkCreate, or send the full state with productSet for imports.
- Apply
mutation($productId: ID!, $variants: [ProductVariantsBulkInput!]!) { productVariantsBulkCreate(productId: $productId, variants: $variants, strategy: REMOVE_STANDALONE_VARIANT) { productVariants { id } userErrors { field message } } }- Affected
- GraphQL Admin API 2024-04 and later; REST product endpoints deprecated from 2024-04
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders