I’m having trouble to include usefull information in the Webhook of a rule, when ASSETs are changed.
I need this because I have to delete my asset cache when one assets is changed. But I want to delete one cache file, not all, when one assets is changed, so I need to identify the asset changed.
For CONTENT there are usefull parameteres:
- $SCHEMA_ID
- $SCHEMA_NAME
- $CONTENT_URL
which I found about here: https://docs.squidex.io/02-documentation/concepts/rules#3-formatting
But it seems there are no similar parameters for ASSETs.
I tried including in the Webhook Payload the following, none of which was replaced by a value:
$FILENAME, $TYPE, $ASSET_URL, $ASSET_ACTION, $SLUG, $NAME, $ASSET_NAME, $ASSET_SLUG
I also tried putting this in the Payload, but returned null: Script(${contentUrl()}
)
Are there parameters to identify the asset beeing changed in the webhook?
Thanks!
Environment
- [X ] Cloud version