POST

AutomationEvents.Copy

Copy one automation trigger and all of its action

Permissions

User must be logged in and allowed to manage automation/settings for this account.

Action

Copy one automation trigger and all of its action nodes into a new flow.

Push Service

Pushes automationevents.copy 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.Copy.md Sample curl: curl -X POST https://{domain}/app/AutomationEvents.Copy \ -H 'Authorization: Bearer YOUR TOKEN' \ -d 'id=123'

Required Parameters

NameTypeSampleExplanation
id
post
int123Record id.

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.Copy",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "id": "123"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/AutomationEvents.Copy",
    "url_domain": "https:\/\/{domain}\/app\/AutomationEvents.Copy"
}

Endpoint

POST /app/AutomationEvents.Copy
POST https://{user}.bull36.com/app/AutomationEvents.Copy
POST https://{domain}/app/AutomationEvents.Copy

Sample Output

{
    "success": "1",
    "message": "Automation copied",
    "id": "124",
    "copied_from": "123",
    "copied_actions": "3",
    "automation_event": null,
    "socket_event": "automationevents.copy.created"
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('id', '123');

const res = await fetch('/app/AutomationEvents.Copy', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});

const data = await res.json();
console.log(data);

Error Example

{
    "success": "0",
    "message": "Missing required parameter: id"
}