...
“entry.unlocked” is the event type that will trigger the rule:
Code Block |
---|
|
{
"version": "1.0",
"trigger": {
"properties": {
"event": {
"enum": [
"entry.unlocked"
]
},
"required": [
"event"
], |
Replace “####” with entry IDs to only trigger the rule when specific entries unlock.
Code Block |
---|
|
"data": {
"allOf": [
{
"properties": {
"_type": "entry",
"entryIds": {
"contains": {
"enum": [
####
]
}
}
}
}
]
}
}
}, |
Replace the URL below with your app’s Webhook URL.
Code Block |
---|
|
"requests": [
{
"type": "http",
"blocking": false,
"preRequestDelaySeconds": 0,
"httpParams": {
"headers": [
"User-Agent: Openpath/Rules Engine",
"Content-Type: application/json"
],
"method": "post",
"url": "https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXXXXXXX",
|
...