Skip to Content
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
  1. body
tasks?array<>

Response Body

Workflow created (the file field is redacted for each task)

Example Request
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"    }  ]}'
Example Response201
Empty