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": "proident sunt ea culpa",
"provenance": "in deserunt magna est irure"
},
{
"name": "et reprehenderit",
"provenance": "ullamco"
},
{
"name": "irure occaecat",
"provenance": "enim quis cillum reprehenderit ea"
},
{
"name": "ut Excepteur",
"provenance": "exercitation"
}
],
"_id": "fc95ab0f-1ac2-64b2-70ca-5c0e816c651f",
"description": "Duis ut in sed aute",
"font_size": 12,
"created": "1988-04-23T11:55:29.002Z",
"created_by": {
"username": "commodo eiusmod ad in id",
"provenance": "dolor in commodo"
},
"last_updated": "1988-04-22T17:09:02.789Z",
"last_updated_by": {
"username": "reprehenderit veniam",
"provenance": "dolor"
}
},
"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": 86949679,
"ok": 80349113,
"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"
]
}
}
}