Parts of the webhook documentation are confusing me a bit, namely around the actions and subactions. I think at this point (after some searching) I only have a couple of questions right now.
If I get a webhook request with:
{
"attribute": "beer",
"action": "edit", // It WOULD be "edit" in this case, right?
"attributeId: "aE45C",
"subAction": "brewery-edit"
}
So with this request, is it possible that there would also be changes to the beer itself since the action is "edit"? Or are webhooks restricted to a single event (i.e. if there were also changes to the beer, there would be another webhook request without a subAction)?
Also, presumably there would be another webhook with an "attribute" of "brewery" and an "action" of "edit", yeah?
I guess my biggest question here is: is there any reason to pay attention to a subAction of "brewery-edit" when the Brewery has its own webhook? Presumably, I could discard the "brewery-edit" subAction requests and just act on the webhook that comes in specifically for the brewery.