New Shopify Certification now available: Liquid Storefronts for Theme Developers

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
158 4 22

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?

Kalen Jordan
Platform Advocate
MESA - Shopify Automation You've Love
Replies 2 (2)
oscprofessional
Shopify Partner
15736 2353 3051

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...

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Custom Pricing Wholesale App : Free | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing
Kalen_Jordan
Shopify Partner
158 4 22

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.

Kalen Jordan
Platform Advocate
MESA - Shopify Automation You've Love