onChange).fieldId) with a set of operations: each operation lists the conditions (conditions, with fieldId, operator and value) that, when met, fire one or more actions (actions, with type — show, hide, setRequired, setOptional or clearValue — and targetFieldId). The field identifiers used here (fieldId and targetFieldId) are the internal identifiers returned by the template lookup, not the key declared by the user.active: false and operations as an empty list — sending a null value for the rule object is rejected with a validation error.curl --location --request PUT '/templates//fields/rules' \
--header 'Content-Type: application/json' \
--data '{
"items": [
{
"fieldId": "string",
"rules": {
"trigger": "string",
"active": true,
"operations": [
{
"conditions": [
{
"fieldId": "string",
"operator": "string",
"value": null
}
],
"actions": [
{
"type": "show",
"targetFieldId": "string"
}
]
}
]
}
}
]
}'{
"items": [
"string"
]
}