How to specify which part of a document triggers a webhook in Sanity.io.

2 replies
Last updated: May 18, 2024
hi everyone! does any know if its possible to specify which part of the document gets updated to call the webhook? eg. only call the webhook when the main image of a document changes. Cause now my webhook triggers everytime any sort of update happens to the document
May 17, 2024, 4:39 PM
Yes! This is what filters and delta GROQ are for in your webhook. This guide should be helpful.
May 17, 2024, 4:55 PM
Thanks RD! really helpful!
May 18, 2024, 2:22 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?