Hi Polly,
I think you can only filter by the resource fields available in the event subscription API. So for the Document resource, the 'groups' field would be the only one that could meet your use case. So your query would look like this.
{"objCode": "DOCU",
"eventType": "CREATE",
"url": "https://eventfilter.yourendpoint.com",
"authToken": "EauthTokenWorkfrontRocks1234_",
"filters": [
{
"fieldName": "groups",
"fieldValue": "IDxsfdsfasfsafafvalue"
}
}
Whenever a document is added to a project, it is automatically associated with the project's group ID. However having said that, 'groups' is a collection and i'm not sure in what circumstances Workfront would associate a document with more than one group. If / when there is a scenario when there is more than one group, i'm not sure whether this would meet the filter criteria of your event subscription - some testing needed I think!
Hope this helps.
Best Regards,
Rich.