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": [
"0d07f4305ff3fc0a201e9119",
"52d565ac41f27e1f34c29fc6",
"c9f1fb579db4cfa1d83d3d05",
"bb753b68ec0343d88cefb7b2",
"4a485172a11dffab3a2dd065"
],
"_id": "9b6324fa-1643-85f2-8970-ef4d90cb4ca5",
"description": null,
"font_size": 12,
"created": "2013-03-12T08:21:32.793Z",
"created_by": "0f0b8131c549981d72087595",
"last_updated": "1959-03-19T00:52:12.076Z",
"last_updated_by": "81f4e8d282715239f49bfe35"
}