Create Automation


                https://api.ocamba.com/v2/ocamba/ebs/automations
            

Creates a new Automation object


Name
Description
actions[ ebs-action ]
Actions objects.
Event system - Action
Name
Description
actions[ ebs-action ]
New actions to execute.


Example: [ { "id":"1010", "integration_id":"10000", "data":{ "body":{ "user_id":"{{event.user_id}}", "zone_id":"123456" } } } ]

dataobject
Action data.


Example: { "body": { "user_id": "{{event.user_id}}", "zone_id": "123345678" } }

filters[ ebs-filter ]
A tool for finding and executing only the event that is matched with filter.


Example: [ {"key":"{{event.tag_id}}","match":"in:120,960"} ]
Event system - Filter
Name
Description
filters[ ebs-filter ]
A tool for finding and executing only the event that is matched with filter.


Example: [ {"key":"{{event.tag_id}}","match":"in:120,960"} ]

keystring
The tag id that filters events.


Example: {{event.tag_id}}

matchstring
Input that will match event key.


Example: 120

idstring
The ID of the event, generated by Ocamba API.


Example: 1002

integration_idstring
The ID of the integration.


Example: 10000

company_idstring
The ID of the integration.


Example: 6197120

create_timedateTime
Timezone: GMT.


Example: 2021-07-30 12:50:13

descriptionstring
The detailed Automation description.


Example: Push welcome

event[ ebs-event ]
Events objects.
Event system - Event
Name
Description
idstring
The ID of the event, generated by Ocamba API.


Example: 1000

integration_idstring
The ID of the integration.


Example: 10000

idstring
The ID of the event, generated by Ocamba API.


Example: 10001

namestring
The Automation name.


Example: First automation

statusstring
The Status of Automation.


Example: active

update_timedateTime
Timezone: GMT.


Example: 2021-07-30 12:50:13
200 Arrow
{
  "status":"active",
  "name":"Push welcome",
  "description":"Push adex welcome notification",
  "event":{
    "id":"1000",
    "integration_id":"10000"
  },
  "actions":{
    "id":"1002",
    "integration_id":"10000",
    "data":{
      "user_id":"{{event.user_id}}",
      "zone_id":"12345678"
    }
  }
}
201 Arrow
{
  "id":"11000",
  "company_id":"6197120",
  "status":"active",
  "name":"Push welcome",
  "description":"Push adex welcome notification",
  "event":{
    "id":"1000",
    "integration_id":"10000"
  },
  "actions":{
    "id":"1002",
    "integration_id":"10000",
    "data":{
      "user_id":"{{event.user_id}}",
      "zone_id":"12345678"
    }
  },
  "create_time":"2022-07-02 12:30:40",
  "update_time":"2022-07-05 13:19:10"
}