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": -44610096.3583536,
"y": -78315265.81451014
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 4961988.629137129,
"y": 27479983.83229202
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
{
"name": "cupidatat nostrud",
"provenance": "nostrud ut qui magna cillum"
},
{
"name": "dolor irure adipisicing minim",
"provenance": "nisi ad in"
},
{
"name": "sit",
"provenance": "cillum occaecat non voluptate"
}
],
"_id": "12b3cbee-fdea-0586-64be-ffde8cbb19d1",
"description": null,
"errorHandler": null,
"font_size": 12,
"created": "1952-10-02T01:18:41.939Z",
"created_by": {
"username": "incididunt eu",
"provenance": "consectetur adipisicing"
},
"createdVersion": "consectetur in dolor consequat",
"last_updated": "2011-05-03T21:13:32.935Z",
"last_updated_by": null,
"lastUpdatedVersion": "esse velit ut Excepteur",
"tags": [
{
"_id": "5f99d6A81dBBBafe1082AA49",
"name": "dolore officia",
"description": "sed tempor"
}
],
"canvasVersion": 1,
"decorators": [
{
"type": "encryption",
"pointer": "/~1/DD+Boj9Q5FI"
},
{
"type": "encryption",
"pointer": "/~0/u.iX/~0"
},
{
"type": "encryption",
"pointer": "/WDOI6mUEn"
},
{
"type": "encryption",
"pointer": "/~1/~0/~1/~1/~0/~1/~1/~1/ed37SQC7"
}
]
},
"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"
}