Webhook Props Now Available
You can now set
props on webhooks to limit the data payload. This is useful for Objects with large data payloads as it allows you to limit the payload to just the data you need.
How to use the new feature
See the props section in the Cosmic docs to learn more about how to use props. Go to Your Bucket > Settings > Webhooks after logging in to use the new feature.
Let's look at a couple of example webhook payloads with and without props.
You get the full data payload.
That's a lot of data! Do you need it all? Maybe not. Enter props.
Get only the data you need. This example sets
Go to Bucket Settings > Webhooks to set props.
Wow, that's nice! Notice how much more concise the data payload is compared to not using props. Keep in mind that this currently only applies to first-level props (namespaced metadata declarations are not supported yet).
We hope you enjoy this quick update to make your automated workflows with webhooks more efficient. If you have any questions, please join the conversation in the Cosmic Slack channel and reach out to us on Twitter.
Build a Digital Art Marketplace Using Next.js, Cosmic, and Stripe
July 12, 2022
Global infrastructure updates
November 08, 2022