latestOpenAPI 3.0.02026-08-0819201.1 MB

411f9f98c01e

flow drafts

Returns a Flow Draft based on the specified Flow Id

You need workspace memberships to access this resource

get/flows/{flow_id}/draft

Path parameters

flow_idstring required

Flow identifier

Response

OK

metaobject required

Example response

{
  "data": {
    "id": "5b4f337bff4304610483ba67",
    "links": {
      "self": "/v2/flows/5b4f337bff4304610483ba67/draft"
    },
    "attributes": {
      "name": "PetStore to Email Flow",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
      "graph": {
        "nodes": [
          {
            "name": "petStore",
            "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
            "command": "core/petStore:getPetsByStatus@51ff8236dd1d461f67111b145f69441bafdeb710",
            "id": "step_1",
            "credentials_id": "609e6f5164b6470011d26387",
            "selected_data_samples": [
              "5b4f337bff4304610483ba67"
            ]
          }
        ],
        "edges": [
          {
            "id": "mapper:step_1:step_2",
            "target": "step_2",
            "source": "step_1",
            "config": {
              "mapper_type": "jsonata"
            }
          }
        ]
      },
      "created_at": "2020-01-12T14:50:42.215Z",
      "updated_at": "2021-12-13T14:24:53.825Z",
      "stats_enabled": true
    },
    "relationships": {
      "user": {
        "data": {
          "id": "5b4f337bff4304610483ba67"
        },
        "links": {
          "self": "/v2/users/5b4f337bff4304610483ba67"
        }
      },
      "flow": {
        "data": {
          "id": "5b4f337bff4304610483ba67"
        },
        "links": {
          "self": "/v2/flows/5b4f337bff4304610483ba67"
        }
      }
    }
  }
}