Summary
Creates a new workflow document.
Description
Creates a new workflow document.
Route
POST /automation-studio/automations
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation | object | yes | Workflow to create. |
{ "automation": { "name": "Push Config to Device", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "c4aa3e333330a717b240e411", "19cf59d51ffc915391e49e4c", "00fbef62cd82398b1bfaae04", "437d5e64515dca1a43e33679" ], "nodeLocation": { "x": -59128471.313443854, "y": 78362148.33513173 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "88256fb50599449568d90691", "e3ae62e6867c7b3fa548d2bd", "21a59002845d91e6557b407d", "0c60831184c154b2ed3f7421" ], "nodeLocation": { "x": -45236558.15091745, "y": 57335440.16132656 } }, "error_handler": { "name": "childJob", "summary": "voluptate minim", "description": "incididunt et dolore sint", "app": "non ea dolor", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/dU9-" } ] }, "groups": [ "304532c39a8b124687b126eb", "2bba3b384fb8937bded5500e" ], "type": "operation", "nodeLocation": { "x": 17877989.957470894, "y": 45471359.769384086 }, "deprecated": false, "scheduled": false, "retrySettings": { "state": [ "success", "success" ], "autoRetry": true, "limit": 10, "delay": 2000, "count": 5 } } }, "transitions": {}, "groups": [ "cf4a35e797f3b41477b9e998", "f9a7cfe372fca4e1c784f2f6" ], "canvasVersion": 3, "_id": "91047f7e-53b4-11a2-5f44-88671c1db69c", "uuid": "c22df7b8-6ed2-d9ae-77a6-5d5f656c732d", "namespace": { "type": "project", "name": "Duis aliquip enim minim", "accessControl": { "read": [ "est ullamco enim consequat Duis", "veniam fugiat", "ullamco veniam", "non in magna sit", "id ex sit elit eu" ], "write": [ "esse Duis", "labore ipsum non", "consequat ut" ], "execute": [ "culpa fugiat exercitation", "laboris" ], "manage": [ "et est", "eiusmod cillum ut", "reprehenderit Lorem labore" ] } }, "description": null, "preAutomationTime": 5000, "sla": 16603359, "errorHandler": { "type": "cillum aliqua voluptate amet officia", "name": "enim non" }, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "ac3b19b1d228e8ecb492cf7b", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "0e73b36faee7f91bec1d5850", "lastUpdatedVersion": "4.69.69", "tags": [ "veniam consectetur", "sint voluptate irure magna proident" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/kiSWd/~0/F1cKAhbS/bg/KVcWhIfIC/~1" } ], "migrationVersion": 25325850 } }
{ "type": "object", "properties": { "automation": { "title": "automation", "$ref": "workflowDocument" } }, "required": [ "automation" ], "additionalProperties": false }
Return
| Name | Type | Description |
|---|---|---|
| response | object | Created workflow and associated edit URI. |
{ "created": { "name": "Push Config to Device", "type": "automation", "tasks": { "workflow_start": { "name": "workflow_start", "summary": "workflow_start", "groups": [ "1820028ab283e3f00432763c", "c320f7c925bd5952834abeed" ], "nodeLocation": { "x": 63479091.221438766, "y": 9920006.24066773 } }, "workflow_end": { "name": "workflow_end", "summary": "workflow_end", "groups": [ "9dfdb9193f8de2db48569906", "549e3b87bab518fcaad5a937", "c5cdc9fa450f32f6f4de3721", "05effb2643bcfc0be64a72d3" ], "nodeLocation": { "x": 6751424.569409892, "y": -43660836.42469896 } }, "error_handler": { "name": "childJob", "summary": "ut velit aliqua aliquip sunt", "description": "id reprehenderit adipisicing aliqua", "app": "pariatur", "variables": { "error": "", "decorators": [ { "type": "encryption", "pointer": "/~0/A3q2t/~0/~1/~1/eHzVr/~1" }, { "type": "encryption", "pointer": "/~1/ugfj1zon8/NoszJC//k2dKu9LhhJ/~1/c5CcdXrhx/Z5dk/~1" } ] }, "groups": [ "eae30cf1b26699f7541a415c" ], "type": "operation", "nodeLocation": { "x": -31563754.752667755, "y": -84675139.18435441 }, "deprecated": true, "scheduled": false, "retrySettings": null } }, "transitions": {}, "groups": [ "eede67404755b28f58ce74df", "4242229f0a9d734853cdb553" ], "canvasVersion": 3, "_id": "da84f694-f715-055e-a980-9d343318ebe5", "uuid": "3cc5e064-79d0-50af-a98b-d5891d1dd452", "namespace": { "type": "project", "name": "et mollit sint minim amet", "accessControl": { "read": [ "nostrud", "consectetur proident", "est veniam elit dolore magna", "amet minim dolore nisi" ], "write": [ "enim", "sed Lorem" ], "execute": [ "irure nisi sunt velit", "eu non tempor", "mollit fugiat sint dolor anim" ], "manage": [ "mollit nisi sed ad cupidatat" ] } }, "description": null, "preAutomationTime": 250000, "sla": -43565885, "errorHandler": null, "font_size": 12, "created": "2024-03-13T18:21:15.352Z", "created_by": "034e92a16f6d825afc5b8efc", "createdVersion": "5.40.5-2021.1.72.0", "last_updated": "2024-03-13T18:21:15.352Z", "last_updated_by": "5f5cfe52d17f6963db0731a8", "lastUpdatedVersion": "4.69.69", "tags": [ "cillum dolor magna", "veniam reprehenderit", "nulla" ], "encodingVersion": 1, "decorators": [ { "type": "encryption", "pointer": "/zgb66f./~0/~1/GmCfb/~0/~1/~1" }, { "type": "encryption", "pointer": "/hbGPU,4FgI/hudzQHWhSh" }, { "type": "encryption", "pointer": "/gOzsJnPVwGS/xVh8bKNYx6k/~0/~1/eg9VGKp/~0/laj3/~1" }, { "type": "encryption", "pointer": "/QoL/~1" }, { "type": "encryption", "pointer": "/~0/M/x6/wW7-WH-/HJ1OZpc6" } ], "migrationVersion": 42183537 }, "edit": "laboris qui eiusmod proident in" }
{ "title": "response", "type": "object", "description": "Created workflow and associated edit URI.", "properties": { "created": { "$ref": "workflowDocument" }, "edit": { "type": "string", "description": "URI to the edit page for the newly created workflow." } }, "required": [ "created", "edit" ] }