Hello! I created a webhook for a project in a workspace using this req body:
{
"data": {
"resource": "<resource_gid>",
"filters": [
{
"resource_type": "workspace_membership",
"action": "added"
},
{
"resource_type": "workspace_membership",
"action": "removed"
},
{
"resource_type": "team_membership",
"action": "added"
},
{
"resource_type": "team_membership",
"action": "removed"
},
{
"resource_type": "project",
"action": "added"
},
{
"resource_type": "project",
"action": "removed"
},
{
"resource_type": "project",
"action": "changed"
},
{
"resource_type": "project",
"action": "deleted"
},
{
"resource_type": "project",
"action": "undeleted"
}
],
"target": "<target_url>"
}
}
I’m currently testing the webhook by adding project to a workspace. I noticed there’s multiple events being returned in the webhook response:
{
"events": [
{
"user": {
"gid": "<gid>",
"resource_type": "user"
},
"created_at": "2024-12-03T18:29:50.851Z",
"action": "added",
"resource": {
"gid": "<gid>",
"resource_type": "project"
},
"parent": {
"gid": "<gid>",
"resource_type": "team"
}
},
{
"user": {
"gid": "<gid>",
"resource_type": "user"
},
"created_at": "2024-12-03T18:29:50.852Z",
"action": "added",
"resource": {
"gid": "<gid>",
"resource_type": "project"
},
"parent": {
"gid": "<gid>",
"resource_type": "workspace"
}
}
]
}
Why is there 2 events being returned other than just 1?