The export command is used to export the Flow-fx as YAML code.
JSON Input Data Format

    {
        "id": string
    }

id * | Specifies the ID of the Flow-fx object.

* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.
Successful Response

    {
        "result": "OK",
        "payload": "flowfx:\n  module:\n    data:\n      '1':\n        id: 1\n        name: START\n        data: {}\n        class: START\n        html:
    START
    \n        typenode: false\n        inputs: {}\n        outputs:\n          output_1:\n            connections:\n              - node: '5'\n                output: input_1\n        pos_x: 192\n        pos_y: 270\n      '2':\n        id: 2\n        name: CONDITION\n        data:\n          eval: '?input.result? == \"OK\"'\n          output: |-\n            {\n                \"result\": \"?input.result?\",\n                \"payload\": \"?input.payload?\",\n                \"message\": \"?input.message?\"\n            }\n        class: CONDITION\n        html:
    CONDITION
    \n        typenode: false\n        inputs:\n          input_1:\n            connections:\n              - node: '5'\n                input: output_1\n        outputs:\n          output_1:\n            connections:\n              - node: '3'\n                output: input_1\n          output_2:\n            connections:\n              - node: '4'\n                output: input_1\n        pos_x: 718\n        pos_y: 293\n      '3':\n        id: 3\n        name: SUCCESS\n        data:\n          output: |-\n            {\n                \"result\": \"?input.result?\",\n                \"payload\": \"?input.payload?\"\n            }\n        class: SUCCESS\n        html:
    SUCCESS
    \n        typenode: false\n        inputs:\n          input_1:\n            connections:\n              - node: '2'\n                input: output_1\n        outputs: {}\n        pos_x: 959\n        pos_y: 320\n      '4':\n        id: 4\n        name: FAIL\n        data:\n          output: |-\n            {\n                \"result\": \"?input.result?\",\n                \"message\": \"?input.message?\"\n            }\n        class: FAIL\n        html:
    FAIL
    \n        typenode: false\n        inputs:\n          input_1:\n            connections:\n              - node: '2'\n                input: output_2\n        outputs: {}\n        pos_x: 1041\n        pos_y: 448\n      '5':\n        id: 5\n        name: firewall-create\n        data:\n          api: '1'\n          apiname: firewall\n          cloudid: V7f780c26d-8b95-4ca6-8aa7-7a460e988afe\n          name: MyRule\n          proto: tcp\n          fromip: any\n          toip: 10.1.0.122\n          port: '8081'\n          output: |-\n            {\n                \"result\": \"?api.result?\",\n                \"payload\": \"?api.payload?\",\n                \"message\": \"?api.message?\"\n            }\n        class: firewall-create\n        html:
    firewall-create
    \n        typenode: false\n        inputs:\n          input_1:\n            connections:\n              - node: '1'\n                input: output_1\n        outputs:\n          output_1:\n            connections:\n              - node: '2'\n                output: input_1\n        pos_x: 360\n        pos_y: 220\n      '6':\n        id: 6\n        name: firewall-delete\n        data:\n          api: '1'\n          apiname: firewall\n          id: V7e0f4b952-2693-4bb6-bac6-6ca311a74e54\n          output: |-\n            {\n                \"result\": \"?api.result?\",\n                \"payload\": \"?api.payload?\",\n                \"message\": \"?api.message?\"\n            }\n        class: firewall-delete\n        html:
    firewall-delete
    \n        typenode: false\n        inputs:\n          input_1:\n            connections: []\n        outputs:\n          output_1:\n            connections: []\n        pos_x: 360\n        pos_y: 340\n      '7':\n        id: 7\n        name: firewall-list\n        data:\n          api: '1'\n          apiname: firewall\n          output: |-\n            {\n                \"result\": \"?api.result?\",\n                \"payload\": \"?api.payload?\",\n                \"message\": \"?api.message?\"\n            }\n        class: firewall-list\n        html:
    firewall-list
    \n        typenode: false\n        inputs:\n          input_1:\n            connections: []\n        outputs:\n          output_1:\n            connections: []\n        pos_x: 360\n        pos_y: 280\n"
    }

Failed Response

    {
        "result": "ERR",
        "message": "Error message ..."
    }