Summary
Export Workflow
Description
Export a single Workflow
Route
POST /workflow_engine/workflows/export
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
options |
object |
yes |
match a workflow using _id or name or type |
Copied to Clipboard
{
"options": {
"_id": "4321abcdef694aa79dae47ad",
"name": "someWorkflowName",
"type": "automation"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"options": {
"type": "object",
"properties": {
"_id": {
"allOf": [
{
"$ref": "wfEngineCommon#/definitions/mongoObjectId"
},
{
"description": "The Id of the workflow to export"
}
]
},
"name": {
"type": "string",
"description": "The name of the workflow to export",
"examples": [
"someWorkflowName"
]
},
"type": {
"type": "string",
"description": "The type of the workflow to export",
"examples": [
"automation"
]
}
},
"additionalProperties": false
}
},
"required": [
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
workflow |
object |
Exported Workflow |
Copied to Clipboard
{
"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": "officia",
"provenance": "velit"
},
{
"name": "occaecat incididunt",
"provenance": "reprehenderit consectetur"
},
{
"name": "ad",
"provenance": "in"
},
{
"name": "minim laboris amet et id",
"provenance": "ut voluptate proident velit"
},
{
"name": "in officia",
"provenance": "dolore non do in eiusmod"
}
],
"_id": "b2777506-4e13-bd1b-fec4-64fd6a929e09",
"description": "Duis sint",
"font_size": 12,
"created": "1985-07-22T11:13:29.613Z",
"created_by": {
"username": "nulla",
"provenance": "nulla culpa minim eiusmod deserunt"
},
"last_updated": "2019-12-11T19:10:03.636Z",
"last_updated_by": {
"username": "consectetur in ex qui",
"provenance": "qui velit id sed"
}
}