Summary
Import Workflow
Description
Import a single Workflow
Route
POST /workflow_builder/import
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
workflow |
object |
yes |
A workflow payload object |
options |
object |
yes |
Import options: adapterMap (optional) |
Copied to Clipboard
{
"workflow": {
"name": "My Workflow",
"type": "automation",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"summary": "workflow_start",
"groups": [],
"x": 15339724.999732956,
"y": 94991192.94079849
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 85749411.1662679,
"y": -78999287.66005754
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
{
"name": "sunt non",
"provenance": "ullamco in"
},
{
"name": "commodo",
"provenance": "sunt"
},
{
"name": "veniam",
"provenance": "commodo consectetur anim do minim"
}
],
"_id": "b285388c-a0e5-78b0-6875-7efa8f1d3854",
"description": "dolore ut",
"errorHandler": null,
"font_size": 12,
"created": "1997-10-06T21:24:40.326Z",
"created_by": null,
"createdVersion": "enim pariatur adipisicing",
"last_updated": "2003-02-14T10:06:00.68Z",
"last_updated_by": {
"username": "do magna voluptate ut ullamco",
"provenance": "laboris"
},
"lastUpdatedVersion": "aute officia occaecat commodo",
"tags": [
{
"_id": "bcec9Ff70A63A6575e1C28d1",
"name": "Excepteur",
"description": "sit"
},
{
"_id": "648b393bc33ebf601B2878e3",
"name": "et esse aute",
"description": "reprehenderit Lorem"
},
{
"_id": "EBAD48ebfA887bC1B0EbC32b",
"name": "et esse commodo tempor",
"description": "sunt Ut"
}
],
"canvasVersion": 1
},
"options": {}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"workflow": {
"$ref": "workflowPayload"
},
"options": {
"type": "object",
"properties": {
"adapterMap": {
"type": "object"
}
}
}
},
"required": [
"workflow",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
Import status Object |
Copied to Clipboard
{
"type": "object",
"title": "result"
}