Stipulate Whether Tags Were Added or Removed in ContactTagUpdate Webhook Event.
S
Scott Heliker
Currently the tags event hook does not stipulate if the tag was added or removed.
We would like to filter our tag events in our application based on if specific tags were added or removed but not possible without this identifier in the event paylaod
Possibly they could include something like they have in the responses in the add tag and remove tag endopints where it includes tagsAdded array and tagsRemoved array accordingly.?
Sample webhook event payload.
{
"type": "ContactTagUpdate",
"locationId": "kwInOO**********uZM",
"appId": "61**************074",
"id": "qHZt5u1gBctYlf7ovnB3",
"firstName": "John",
"lastName": "Doe",
"email": "john@doe.net",
"companyName": "Johns Plumbing",
"source": "api v1",
"tags": [
"mailchimp"
],
"country": "US",
"dateAdded": "2023-02-17T13:59:48.683Z"
}
Here is response from add tag to contact.
{
"tags": [
"plumber",
"restaurant"
],
"tagsAdded": [
"plumber",
"restaurant"
],
"traceId": "165f3c80-02d1-448c-9c07-15203db371f1"
}
And one from Remove tags from contact.
{
"tags": [
"plumber"
],
"tagsRemoved": [
"restaurant"
],
"traceId": "f1990817-e4ec-4050-8f86-19cdcc3e4ffd"
}
If they could add something like that to the webbook event payload. Who would be the one to talk to about this?
Log In