A developer is migrating Shopify integrations from the deprecated REST API to GraphQL Admin API and encountering issues updating product variants.
The Problem:
Can successfully create simple products (single variation) and retrieve the default variant ID
Unable to update the variant’s SKU and price using productVariantsBulkUpdate mutation
Suggested Solutions:
Provide more details - Include actual code, API responses, and error messages for effective troubleshooting
Check the allowPartialUpdates flag - This parameter on productVariantsBulkUpdate may be relevant to the issue
SKU update location - SKU must be updated through the inventoryItem property of productVariant, not directly on the variant itself
Consider productSet mutation - Alternative approach that handles product updates differently to avoid data loss
Status: The discussion remains open with community members providing guidance, though the original poster hasn’t confirmed whether the solutions resolved their issue.
Summarized with AI on October 23.
AI used: claude-sonnet-4-5-20250929.
We have been building integrations between Shopify and Financial programs for a couple of years now using the REST API.
Due to the REST API being deprecated we now want to move to GraphQL Admin API.
We try to create just “simple” products so products with 1 variation. I’ve been cracking my head over it because for some reason, I can make the product (without also giving the variation details), get de default variant ID that has been added to the product.
But then it stops, i want to update it so i can set the correct SKU and prijs. I’ve found the productvariantsbulkupdate but for some reason i can’t update the SKU with it.