diff --git a/openapi.json b/openapi.json index b51d389..80693b3 100644 --- a/openapi.json +++ b/openapi.json @@ -3177,7 +3177,7 @@ }, "/ingest/pipelines/{pipeline_id}/draft": { "post": { - "description": "Autom\u00e1tico: starts the `draft` job, which draws the whole pipeline from its saved\nsources (the only nodes it may hold), saves it as a new version and runs it; follow it\nat /runs/{run_id}.", + "description": "Autom\u00e1tico: starts the `draft` job, which draws the whole pipeline from its saved\nsources (the only nodes it may hold), saves it as a new version and runs it (`run`\nfalse: drawn and saved only); follow it at /runs/{run_id}.", "operationId": "start_draft", "parameters": [ { @@ -3190,6 +3190,16 @@ "title": "Pipeline Id", "type": "string" } + }, + { + "in": "query", + "name": "run", + "required": false, + "schema": { + "default": true, + "title": "Run", + "type": "boolean" + } } ], "responses": { diff --git a/src/app/api/fn/ingest/start-draft.ts b/src/app/api/fn/ingest/start-draft.ts index 798437b..9eb93b2 100644 --- a/src/app/api/fn/ingest/start-draft.ts +++ b/src/app/api/fn/ingest/start-draft.ts @@ -10,6 +10,7 @@ import { RequestBuilder } from '../../request-builder'; export interface StartDraft$Params { pipeline_id: string; + run?: boolean; } export function startDraft(http: HttpClient, rootUrl: string, params: StartDraft$Params, context?: HttpContext): Observable