Summary
Import Workflow
Description
Import a single Workflow
Route
POST /workflow_engine/workflows/import
Roles
admin
apiwrite
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": 0.36142061281337046,
"y": 0.502092050209205
},
"workflow_end": {
"name": "workflow_end",
"summary": "workflow_end",
"groups": [],
"x": 0.36142061281337046,
"y": 0.502092050209205
}
},
"transitions": {},
"groups": [
{
"name": "veniam cupidatat in quis",
"provenance": "eiusmod exercitation"
},
{
"name": "id proident",
"provenance": "in Excepteur magna ex"
},
{
"name": "ut",
"provenance": "veniam laborum Ut"
},
{
"name": "esse elit veniam minim proident",
"provenance": "ullamco do deserunt dolore laboris"
}
],
"_id": "bb7a9d30-ed74-c89d-2e19-32dee039df56",
"description": null,
"font_size": 12,
"created": "1995-10-24T21:29:17.946Z",
"created_by": {
"username": "ex proident occaecat quis tempor",
"provenance": "nostrud nulla consectetur"
},
"last_updated": "2008-07-08T05:30:46.058Z",
"last_updated_by": {
"username": "dolore",
"provenance": "exercitation eiusmod reprehenderit"
}
},
"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
{
"n": 98054229,
"ok": 90971438,
"name": "workflowName"
}
Copied to Clipboard
{
"type": "object",
"title": "result",
"properties": {
"n": {
"type": "integer",
"minimum": 0
},
"ok": {
"type": "integer",
"minimum": 0
},
"name": {
"type": "string",
"examples": [
"workflowName"
]
}
}
}