触发器保存
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>保存或更改触发器</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://serverId:port/orch/api/v1/biz/trigger/save</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST
<h5>参数</h5>
<pre><code>{
&quot;triggerId&quot;: 63001,//新增时不传,更新时传
&quot;widgetId&quot;:&quot;111&quot;,//应用id
&quot;enable&quot;:false,//启用、停用
&quot;triggerType&quot;:&quot;CRON&quot;,//促发类型 FORM/CRON 表单、corn表达式
&quot;triggerRule&quot;:&quot;0 0/5 * * * *&quot;,//cron表达式
&quot;isFilter&quot;:true,// 是否过滤 true/false,
&quot;params&quot;:{
&quot;modelId&quot;:&quot;xxxxx&quot;,//模型id
&quot;startTime&quot;:&quot;2024-06-18 20:05:04&quot;,
&quot;displaceType&quot;:&quot;BEFORE&quot;,// BEFORE/ON/AFTER 之前/此时间/之后
&quot;customTime&quot;:&quot;08:00:00&quot;,//用户定义时间 选日期字段时填写
&quot;displaceNumber&quot;:1,//时间位移数量
&quot;displaceUnit&quot;:&quot;HOUR&quot;,//时间位移单位 MINUTE/HOUR/DAY
&quot;circleType&quot;:&quot;WEEK&quot;,//NO_CIRCLE/DAY/WEEK/MONTH/YEAR
&quot;endTime&quot;:&quot;xxxxxxxxx&quot;
},
&quot;operationCondition&quot;:[//过滤条件
[{
&quot;fieldId&quot;: &quot;createUser&quot;,
&quot;operation&quot;: &quot;eq&quot;,
&quot;conditionValue&quot;: [{
&quot;fieldId&quot;: &quot;createUser&quot;,
&quot;formId&quot;: &quot;a993153315024631808&quot;,
&quot;defaultValue&quot;:&quot;&quot;
}]
}],
[{
&quot;fieldId&quot;: &quot;createTime&quot;,
&quot;operation&quot;: &quot;eq&quot;,
&quot;conditionValue&quot;: [{
&quot;fieldId&quot;: &quot;&quot;,
&quot;formId&quot;: &quot;&quot;,
&quot;defaultValue&quot;: &quot;2024-06-06 00:00:00&quot;
}]
}]
]
}</code></pre></li>
</ul>
<h5>返回示例</h5>
<pre><code>{
&quot;success&quot;: true,
&quot;code&quot;: &quot;SUCCESS&quot;,
&quot;message&quot;: &quot;处理成功&quot;,
&quot;traceId&quot;: &quot;&quot;,
&quot;data&quot;: 63001
}</code></pre>