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": "sit",
"provenance": "esse"
},
{
"name": "officia veniam Lorem laboris",
"provenance": "Ut dolor esse mollit eu"
},
{
"name": "dolor Lorem ad qui",
"provenance": "culpa in labore"
},
{
"name": "reprehenderit sit aliquip Excepteur",
"provenance": "voluptate"
}
],
"_id": "db16f42d-5f1d-a439-a2d0-cd615b29ff79",
"description": null,
"font_size": 12,
"created": "1958-05-13T23:08:38.298Z",
"created_by": {
"username": "in aliqua nostrud exercitation Lorem",
"provenance": "elit et anim"
},
"last_updated": "2015-03-13T09:13:52.599Z",
"last_updated_by": {
"username": "esse sed",
"provenance": "anim ipsum"
}
}