Is it possible to update or filter multiple products without product id using API?

Highlighted
New Member
2 0 0

I am looking to update or filter products in bulk using SKU as I have thousands of products to add here and the SKU of products is unique. That's why I am looking to update the products using SKU rather than Product ID. Moreover, I want to do it with the help of API.

Thanks,

Ranit Chopra

0 Likes
Shopify Staff
Shopify Staff
1552 78 233

You could use the GraphQL Admin API for the purpose of filtering these products but updating needs to be done by ID:

 

query {
  productVariants(first:10, query:"sku:9781773101552") {
    edges {
      node {
        id
        title
        sku
      }
    }
  }
}

https://help.shopify.com/en/api/graphql-admin-api

 

Cheers.

0 Likes