Summary
Creates an automation
Description
Creates an automation with optional description. An automation's root structure is based off the agendajs library, with any custom data falling into the 'data' array
Route
POST /automation_catalog/automations
Roles
admin
other
readonly
apiread
Parameters
Details Example Schema
Name
Type
Required
Description
name
string
yes
Unique name of the automation
description
string
yes
Short description of the automation
Copied to Clipboard
{
"name": "My fancy automation name",
"description": "culpa minim dolor ullamco"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"name": {
"title": "name",
"$ref": "automationDocument#/definitions/automationName"
},
"description": {
"title": "description",
"type": "string",
"example": [
"My optional description"
]
}
},
"required": [
"name",
"description"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
result
object
Automation document that was created by the request
Copied to Clipboard
{
"_id": "029fde39d565990622b2a5b1",
"name": "My fancy automation name",
"data": {
"description": "sunt dolor id",
"workflowId": "4663a79f7307a594df746094",
"groups": [
"2e4b5c9718b49a04b3ac8c3e",
"7d699f6c32840a0710b17a42",
"5b66fc24f4fc3ce7ca5ca354",
"653580bd4df027875e03478b"
]
},
"nextRunAt": "1942-12-20T12:55:59.512Z",
"repeatInterval": "1 hour"
}