AutomationEvents.Merge
Merge at least two trigger flows with the same event type into one inactive flow with IF branches.
Permissions
User must be logged in and allowed to manage automation/settings for this account.
Action
Merge at least two trigger flows with the same event type into one inactive flow with IF branches.
Push Service
Pushes automationevents.merge status/created/deleted so automation screens can refresh.
Automation
No business automation runs while editing automation configuration. It runs later only when an active trigger event happens.
Special Instructions
These are configuration routes. They do not execute the business automation immediately. Full instructions: /docs/generated/app-route-diffs/AutomationEvents.Merge.md Sample curl: curl -X POST https://{domain}/app/AutomationEvents.Merge \ -H 'Authorization: Bearer YOUR TOKEN' \ -d 'event_ids=123,124'
Required Parameters
| Name | Type | Sample | Explanation |
|---|---|---|---|
event_idspost | array/string | 123,124 | Two or more automation event ids to merge. |
Optional Parameters
No optional body parameters are defined for this function.
Authentication
Send the bearer token returned by Login in the request header.
Authorization: Bearer YOUR TOKEN
Sample Request
{
"url": "\/app\/AutomationEvents.Merge",
"method": "POST",
"headers": {
"Authorization": "Bearer YOUR TOKEN"
},
"body": {
"event_ids": "123,124"
},
"url_user": "https:\/\/{user}.bull36.com\/app\/AutomationEvents.Merge",
"url_domain": "https:\/\/{domain}\/app\/AutomationEvents.Merge"
}Endpoint
POST /app/AutomationEvents.Merge
POST https://{user}.bull36.com/app/AutomationEvents.Merge
POST https://{domain}/app/AutomationEvents.MergeSample Output
{
"success": "1",
"message": "Merged automation created inactive for review.",
"id": "125",
"new_event_id": "125",
"merged_from": [
"123",
"124"
],
"branches": "2",
"automation_event": null,
"socket_event": "automationevents.merge.created"
}JavaScript Example
const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('event_ids', '123,124');
const res = await fetch('/app/AutomationEvents.Merge', {
method: 'POST',
headers: { Authorization: `Bearer ${token}` },
body
});
const data = await res.json();
console.log(data);Error Example
{
"success": "0",
"message": "Missing required parameter: event_ids"
}