propeller logo
API ReferenceWorkflows

Create Workflow

Create a workflow with tasks that have depends_on and run_if fields

POST
/workflows

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "http://localhost:7070/workflows" \  -H "Content-Type: application/json" \  -d '{    "tasks": [      {        "name": "fetch-data",        "image_url": "docker.io/myorg/fetch:v1"      },      {        "name": "process",        "image_url": "docker.io/myorg/process:v1",        "depends_on": [          "<fetch-data-task-id>"        ],        "run_if": "success"      }    ]  }'
Empty