Is there a way to update a product over the API in such a way that the subsequent product updated we

Is there a way to update a product over the API in such a way that the subsequent product updated we

Kalen_Jordan
Shopify Partner
803 39 146

Is there a way to update a product over the API in such a way that the subsequent product updated webhook can be ignored?

 

Like maybe some kind of metafield that you can pass in so that you know to ignore the webhook?

Replies 2 (2)

oscprofessional
Shopify Partner
16343 2438 3177

Hi @Kalen_Jordan,

You can update product using graphQL API.

mutation {
  productUpdate(input: {
    id: "gid://shopify/Product/8421136433447"
    title: "New Title",
    variants:[]          // for variant update
  }) {
    product {
      id
      title
    }
  }
}

In the above graphQL you can update product and variant.

I hope this might be helpful, happy to suggest.

Thanks...

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
Kalen_Jordan
Shopify Partner
803 39 146

Thanks but I was specifically looking for a field that could be passed through in the call that could be used to determine a webhook should be ignored. Like some kind of metafield that isn't used for any other purpose.