Shopify Inventory Not Update via Shopify GraphiQL App

I have checked Shopify the graphql API (https://shopify.dev/api/admin-graphql/2022-01/mutations/productVariantsBulkUpdate) and I have tried to update product inventory on Shopify but when I execute the graphql API it’s say “Inventory quantities cannot be updated with variants API” here my graphql request details

[ProductVariantsBulkInput!]!) {
 productVariantsBulkUpdate(productId: $productId, variants: $variants) {
product {
  id
}
productVariants {
  id
}
userErrors {
  field
  message
}
 }
}
{"variants": {"inventoryQuantities": {"availableQuantity": 10,"locationId":"gid://shopify/Location/66027421902" },"id":"gid://shopify/ProductVariant/40747448828110" },"productId": "gid://shopify/Product/6899888488654"}

I have checked with the bulk update inventory-related (https://shopify.dev/api/admin-graphql/2022-01/mutations/inventoryBulkAdjustQuantityAtLocation) but it is updated stock current plus provided. so how to update the bulk stock to Shopify

1 Like