POST
/
workflows
/
{
  "name": "<string>",
  "description": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organisation_id": "<string>",
  "current_version": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "steps": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "name": "<string>",
        "config": {
          "job_type": "<string>",
          "query_type": "sql",
          "query": "<string>",
          "input_datasets": [
            "<string>"
          ],
          "output_datasets": [
            "<string>"
          ]
        },
        "created_at": "2023-11-07T05:31:56Z"
      }
    ],
    "step_transitions": [
      {
        "source_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "target_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      }
    ],
    "created_at": "2023-11-07T05:31:56Z"
  },
  "workflow_runs": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workflow_config_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "status": "<string>",
      "argo_manifest": {},
      "argo_metadata": {},
      "workflow_version": {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "steps": [
          {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "name": "<string>",
            "config": {
              "job_type": "<string>",
              "query_type": "sql",
              "query": "<string>",
              "input_datasets": [
                "<string>"
              ],
              "output_datasets": [
                "<string>"
              ]
            },
            "created_at": "2023-11-07T05:31:56Z"
          }
        ],
        "step_transitions": [
          {
            "source_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "target_step_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
          }
        ],
        "created_at": "2023-11-07T05:31:56Z"
      },
      "created_at": "2023-11-07T05:31:56Z",
      "finished_at": "2023-11-07T05:31:56Z"
    }
  ],
  "cron_schedule": "<string>",
  "created_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Current-Org-Id
string | null

Represents the current organisation ID for the user (example: 'org_u13TesTDumMyEe5P')

Api-key
string | null

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.