curl -X POST https://playground.kaireonai.com/api/v1/pipelines \
-H "x-api-key: $API_KEY" \
-H "x-tenant-id: $TENANT_ID" \
-H "content-type: application/json" \
-d '{
"name": "orders-ingest",
"connectorId": "<connector-id>",
"schemaId": "<schema-id>",
"irVersion": "1.0",
"ir": {
"kind": "pipeline",
"version": "1.0",
"id": "orders-ingest",
"metadata": { "name": "orders-ingest" },
"nodes": [
{ "id": "src", "kind": "source", "connector": "local_fs",
"config": { "path": "/data/orders/", "pattern": { "type": "glob", "value": "*.csv" },
"ordering": "lexicographic",
"waitPolicy": { "maxRetries": 3, "intervalMinutes": 5, "onMissAction": "skip" },
"atomicity": { "stagingFolder": ".processing/", "successFolder": ".archive/", "failureFolder": ".failed/" },
"format": "csv" } },
{ "id": "tgt", "kind": "target", "input": "src",
"schema": "public.ds_orders", "loadMode": "append" }
],
"errorHandling": { "dlq": { "enabled": false }, "retry": { "maxAttempts": 1, "backoff": "exponential" } }
}
}'