latestOpenAPI 3.0.02026-08-0819201.1 MB

411f9f98c01e

flows

Creates a Debug Flow

You need workspaces.flow.toggleStatus permission to access this resource

post/flows/start-debug

Request body

Example request

{
  "data": {
    "attributes": {
      "name": "Debug core/code:execute@2b213e3d90cae3c4721430c623d85a2413cd405e",
      "graph": {
        "nodes": [
          {
            "id": "step_2",
            "command": "core/code:execute@2b213e3d90cae3c4721430c623d85a2413cd405e",
            "vpn_agent_id": "61b9ed068a96b4001138ffc5"
          }
        ],
        "edges": [
          {
            "source": "step_1",
            "target": "step_2"
          }
        ]
      }
    },
    "relationships": {
      "data": {
        "id": "5b4f337bff4304610483ba67"
      },
      "links": {
        "self": "/v2/workspaces/5b4f337bff4304610483ba67"
      }
    }
  }
}

Response

Accepted

Example response

{
  "data": {
    "id": "5b4f337bff4304610483ba67",
    "links": {
      "self": "/v2/flows/5b4f337bff4304610483ba67"
    },
    "attributes": {
      "api_version": "2.0",
      "created_at": "2020-01-12T14:50:42.215Z",
      "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
      "last_modified": "2021-12-13T14:24:53.825Z",
      "name": "Debug core/code:execute@2b213e3d90cae3c4721430c623d85a2413cd405e",
      "updated_at": "2021-12-13T14:24:53.825Z",
      "stats_enabled": true
    },
    "relationships": {
      "queue": {
        "data": {
          "id": "5b4f337bff4304610483ba67.5b4f337bff4304610483ba67.debug"
        }
      }
    }
  }
}