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": 9515925.88339962,
"y": 53850973.65922856
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": -52355323.02075616,
"y": -13407616.777642101
},
"error_handler": {
"type": "operation",
"name": "childJob"
}
},
"transitions": {},
"groups": [
{
"name": "ullamco",
"provenance": "cillum Excepteur exercitation proident do"
},
{
"name": "laborum eu dolore non qui",
"provenance": "ipsum ut aute esse ea"
}
],
"_id": "9a003442-e815-8b4c-d746-1355e4a7f17e",
"description": "labore",
"errorHandler": {
"type": "laboris laborum enim incididunt elit",
"name": "sit nulla anim occaecat"
},
"font_size": 12,
"created": "1977-06-20T22:14:22.98Z",
"created_by": {
"username": "dolor esse",
"provenance": "Lorem laborum proident tempor"
},
"createdVersion": "ex",
"last_updated": "1964-06-03T15:33:21.867Z",
"last_updated_by": {
"username": "quis qui",
"provenance": "in elit"
},
"lastUpdatedVersion": "mollit",
"tags": [
{
"_id": "9EdEFBFEC665ecFea42E1105",
"name": "commodo quis",
"description": "sunt aliqua"
},
{
"_id": "Ee44063866613755CEB5ADFc",
"name": "consectetur aliqua",
"description": "in Lorem cupidatat"
},
{
"_id": "e88fc240D3C2F3eB4f2F230b",
"name": "nulla labore",
"description": "ad deserunt"
}
],
"canvasVersion": 2
},
"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"
}