Run a Shopify Admin GraphQL stagedUploadsCreate + bulkOperationRunMutation pipeline to bulk-import metafield values for thousands of products

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. Call stagedUploadsCreate mutation with resource BULK_MUTATION_VARIABLES and mimeType application/jsonl to get a staged upload URL and parameters
  2. Upload a JSONL file where each line is a variables object for the target mutation (e.g., productUpdate with metafields array) using a multipart POST to the staged URL
  3. Call bulkOperationRunMutation with the mutation string and stagedUploadPath pointing to the uploaded JSONL
  4. Poll bulkOperationStatus (query currentBulkOperation) until status is COMPLETED; download the result JSONL from the url field to inspect per-object errors
  5. Parse the result file: lines with __lineNumber and errors arrays indicate per-input failures; re-submit a corrected JSONL for failed lines only

Known gotchas

Related routes

Run a Shopify Admin GraphQL bulk mutation to update metafield values across thousands of products using stagedUploadsCreate and bulkOperationRunMutation
shopify.dev · 6 steps · unrated
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 GraphQL Admin API bulk operation to export all products for large catalog processing
shopify.com · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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