Skip to main content

Tag Webhooks

When a new post is created with tags attached to it, or a post is updated with new tags, tag.added webhook event is triggered for each tag in addition to post.created.

When a post is updated, and tags are removed from a post, tag.removed webhook event is triggered for each tag in addition to post.updated.

Here is how the structure for above events looks like:

Event name: tag.added
{
"networkId": "CAxOmI7I7t",
"context": "NETWORK",
"entityId": "CAxOmI7I7t",
"currentSettings": [],
"type": "SUBSCRIPTION",
"data": {
"time": "2021-12-20T05:35:00.780Z",
"verb": "ADDED",
"verbAction": "USED",
"actor": {
"id": "olQ88vTqYp",
"roleId": "Kni0OF7HtE",
"roleType": "admin",
"sessionInfo": [
null
],
"spaceRoleId": "j4pEix0TVdPH",
"spaceRoleType": "admin"
},
"object": {
"id": "yzn0McumP2fXTJPHPNuH3",
"networkId": "CAxOmI7I7t",
"spaceId": "kBMLH6nwC78J",
"createdAt": "2021-12-20T05:35:00.780Z",
"updatedAt": "2021-12-20T05:35:00.780Z",
"title": "High Priority",
"slug": "high-priority-7pj8didd",
"description": null
},
"target": {
"organizationId": "i7RkgwKXwz",
"networkId": "CAxOmI7I7t",
"collectionId": "JJaH6objoJw3",
"spaceId": "kBMLH6nwC78J",
"postId": "BcWz0VULB7eo7yb",
"memberId": "olQ88vTqYp",
"memberRoleId": "Kni0OF7HtE"
},
"id": "baafcc1d70da3d6c0085ac866b735491",
"name": "tag.added",
"noun": "TAG",
"shortDescription": "Add Tag"
}
}