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": "5cb7b531d06cceb89fd21b1c",
    "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": "cupidatat dolore in eu",
      "provenance": "voluptate aliquip in aute"
    },
    {
      "name": "ad",
      "provenance": "et id"
    },
    {
      "name": "enim ut aliquip",
      "provenance": "id ullamco Duis consequat sunt"
    },
    {
      "name": "aute proident aliqua",
      "provenance": "ea ut"
    },
    {
      "name": "est",
      "provenance": "ullamco dolore qui cupidatat"
    }
  ],
  "_id": "b0b7935c-bcb0-493b-ca58-f915cc0bc9e5",
  "description": null,
  "font_size": 12,
  "created": "1983-01-10T03:22:47.38Z",
  "created_by": {
    "username": "qui laboris veniam Ut amet",
    "provenance": "officia"
  },
  "last_updated": "1990-11-20T04:52:23.92Z",
  "last_updated_by": {
    "username": "aliqua ullamco dolore",
    "provenance": "est ut sint"
  }
}