跳到主要内容

构建流程

构建并处理一个流程,返回一个作业ID用于事件轮询。

此端点需要通过 CurrentActiveUser 依赖进行身份验证。对于不需要身份验证的公共流程,请使用 /build_public_tmp/flow_id/flow 端点。

参数: flow_id: 要构建的流程的 UUID background_tasks: 后台任务管理器 inputs: 流程的可选输入值 data: 可选的流程数据 files: 要包含的可选文件 stop_component_id: 可选的停止组件ID start_component_id: 可选的起始组件ID log_builds: 是否记录构建过程 current_user: 已认证用户 queue_service: 用于作业管理的队列服务 flow_name: 可选的流程名称 event_delivery: 可选的事件交付类型 - 默认为 streaming

返回值: 包含 job_id 的字典,可用于轮询构建状态

路径参数
flow_id uuid 必填
查询参数
stop_component_id 停止组件ID
start_component_id 起始组件ID
log_builds 记录构建
flow_name 流程名称
event_delivery 事件交付类型

可能的值: [streaming, direct, polling]

请求体
inputs
data
files 文件
响应
200

成功响应

Schema 可选
undefined
422

验证错误

Schema 可选
detail object[] 可选
loc undefined[]
msg 消息
type 错误类型
Search