Webhook for creating project in workspace

I create integration with my service. I want to create webhooks for new projects in my workspace. I can’t find a solution to my problem. I attach my PHP code below. In this topic (Upcoming webhook improvements [Updated: Launched!]) i found information about this feature. What filters should I add?

‘filters’ => [
‘action’ => ‘added’,
‘resource_subtype’ => ‘project’,
‘resource_type’ => ‘project’
‘resource’ => $myWorkspaceGid,
‘target’ => $myTarget

I get an error: “Webhooks for larger scoped resources must have at least one filter and all filters must be in our whitelist.”

Regards, PB

1 Like

Hi @Pit_Bit and welcome to the forum!

In general your request looks pretty good. Try removing the resource_subtype parameter; it’s not needed in this case - projects have no subtype and as a result, that might be throwing the API off.