MngUpdateWorkflowRule¶
Updates an existing workflow chain. If trigger, conditions or actions are changed, backend validates the complete trigger -> conditions -> actions contract.
Access¶
SESSION_ADMIN only.
Request Parameters¶
| Name | Type | Required | Description |
|---|---|---|---|
id |
int | Yes | Workflow rule id |
brand |
string | No | Brand namespace |
code |
string | No | Unique rule code within brand |
name |
string | No | Rule name |
trigger |
string | No | Trigger code |
conditions |
array/string | No | Flat AND conditions |
actions |
array/string | No | Action list |
scope |
int | No | 0 CRM, 1 BO, 2 both |
status |
int | No | 0 active, 1 disabled, 2 archived |
priority |
int | No | Sort priority |
stop_processing |
int | No | 0 or 1 |
Request¶
{
"command": "MngUpdateWorkflowRule",
"extID": "1",
"data": {
"id": 1,
"name": "Large Deposit Source Of Funds v2",
"priority": 200
}
}
Response Data¶
{
"rule": {
"id": 1,
"name": "Large Deposit Source Of Funds v2",
"priority": 200,
"updated_time": 1778160200
}
}