API client: draw-only option for Automático

This commit is contained in:
Roberto Treviño
2026-12-03 15:22:16 -06:00
parent 682c100b67
commit e0084ef9ff
2 changed files with 13 additions and 1 deletions
+11 -1
View File
@@ -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": {
+2
View File
@@ -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<StrictHttpResponse<{
@@ -18,6 +19,7 @@ export function startDraft(http: HttpClient, rootUrl: string, params: StartDraft
const rb = new RequestBuilder(rootUrl, startDraft.PATH, 'post');
if (params) {
rb.path('pipeline_id', params.pipeline_id, {});
rb.query('run', params.run, {});
}
return http.request(