Model apparel size/color variants at scale using the Shopify Admin GraphQL API

domain: shopify.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Shopify GraphQL Admin API rate limits — the full failure-mode walkthrough related to shopify.dev, checked against official docs, with linked verified routes.

Steps

  1. Use productCreate to define a product and its options (e.g., Size, Color, Material) — Shopify supports up to 3 options per product
  2. Use productVariantsBulkCreate to bulk-add variants (size/color combinations) to an existing product instead of creating them one at a time
  3. Query the ProductOption and ProductVariant objects to read back option values and variant-level SKU/price/inventory data
  4. Take advantage of the current 2,048-variant-per-product limit (raised from 100 in October 2025) for apparel lines with many size/color combinations
  5. Use productOptionUpdate to add, rename, or reorder option values without recreating the whole product

Known gotchas

Related routes

Run a Shopify Admin GraphQL bulk mutation to update variant prices across a large catalog using stagedUploadsCreate and bulkOperationRunMutation
shopify.dev · 6 steps · unrated
Run a Shopify Admin GraphQL bulk mutation to update metafield values across thousands of products using stagedUploadsCreate and bulkOperationRunMutation
shopify.dev · 6 steps · unrated
Customize Shopify checkout visual branding using the checkoutBrandingUpsert Admin GraphQL mutation
shopify.dev · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans