Property description

The trigger asset configures what activates an automation rule. Triggers can be

  • In-app and user actions (such as creating or modifying an object) or
  • A scheduled event (specifying when and how often the rule should run).

Minimal JSON: Trigger

Minimal JSON

{
  "key": "",
  "type": "",
  "": [
    ""
  ]
}

Example JSON

{
  "key": "attribute_changed",
  "type": "attributeChanged",
  "attributeTypeKeys": [
    "core_summary",
    "core_description"
  ]
}

JSON 3

{
  "key": "work\uFB02ow_state_changed",
  "type": "workflowStateChanged",
  "work\uFB02owStateKeys": [
    "core_draft"
  ]
}

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the trigger.stringYes
typeType of the trigger. See the list of all supported trigger types.stringYes
Keys of the changed properties. The second mandatory property depends on the selected trigger type.array of stringsYes

Minimal JSON: Schedule

Minimal JSON

{
  "key": "",
  "type": "",
  "cronPattern": "* * * * *"
}

Example JSON

{
  "key":"schedule",
  "type":"schedule",
  "cronPattern":"1 * * * *"//Runseveryhouratminute1
}

Nested properties

PropertyDescriptionValuesMandatory
keyUnique key of the trigger.stringYes
typeschedulestringYes
cronPatternSchedule of the trigger, defined by a cron pattern.stringYes

CRON pattern definition

The pattern is defined using the following format:

* * * * * = minute (0–59) - hour (0–23) - day of month (1–31) - month (1–12) - day of week (0–6, Sunday = 0)

  • Use * to match any value (e.g., every day, every hour)
  • Use */N for “every N units” (e.g., */75 = every 75 minutes)
  • Use ranges like:
    • 1-5 for weekdays (Monday to Friday)
    • 1,15 for specific days (the 1st and 15th)
  • Time is in 24-hour format (e.g., 14 = 2 PM)

For more information, see UNIX cron format.

Tip

Your schedule can run as frequently as once per hour. Intervals shorter than one hour are not supported.