Open alexandradeas opened 3 years ago
Filters are represented in the API as:
"filters": [
{
"not": {
"equals": [
{
"doc": "sys.environment.sys.id"
},
"foo"
]
}
},
{
"equals": [
{
"doc": "sys.contentType.sys.id"
},
"bar"
]
},
{
"equals": [
{
"doc": "sys.id"
},
"baz"
]
},
{
"equals": [
{
"doc": "sys.createdBy.sys.id"
},
"created-user"
]
},
{
"equals": [
{
"doc": "sys.updatedBy.sys.id"
},
"updated-user"
]
}
],
Contentful's webhook API supports filtering based on Environment, Entity, and Content Type however the provider does not currently support filtering of the
contentful_webhook
resource in contentful besidesspace_id
. Thecontentful_webhook
resource should be updated to include an optionalfilter
field that accepts a list of Environment, Entity, or Content Type IDs to be applied to the webhook.As the handling of environments differs from the majority of other resources specific mention should be made of this in the documentation.
https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhooks/webhook