Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

“entry.unlocked” is the event type that will trigger the rule:

Code Block
languagejson
{
  "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
languagejson
      "data": {
        "allOf": [
          {
            "properties": {
              "_type": "entry",
              "entryIds": {
                "contains": {
                  "enum": [
                    ####
                  ]
                }
              }
            }
          }
        ]
      }
    }
  },

Replace the URL below with your app’s Webhook URL.

Code Block
languagejson
  "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",

...