Rules Syntax

The rules object may contain any number of rule objects. A rule object is made up of:

AttributeTypeExampleRequiredNotes
nameString"name": "ruleName"Yes 
conditionString"condition": "${Variables.foo == "Yes"}"NoUse freemarker conditions to apply the rule (same syntax as conditions used in template-info.json)
appliesToArray YesUse "type": "*" to apply to all JSON assets. Other valid values are "dashboard", "lens", "workflow", "schema", and "xmd". The "name" string allows specific JSON assets to be referenced. The "name" can take "*" as well, to apply to all of one asset type or a group of one asset type. For workflow type, name must be "*".
labelString   
actionsArray Yes4 action types: add, put, set, and delete. Can have as many actions as needed in the array.

Example appliesTo value:

1{
2    "type": "dashboard",
3    "name": "dashboardOne"
4}

Example actions value:

1{
2    "action": "set",
3    "description" : "A desc",
4    "path": "$.json.path",
5    "value": "setValue"
6}