* 执行 Workflow * @param workflowId Workflow ID * @param request 执行请求 * @returns Workflow 执行记录
(workflowId: string, request: ExecuteWorkflowRequest)
| 98 | * @returns Workflow 执行记录 |
| 99 | */ |
| 100 | async execute(workflowId: string, request: ExecuteWorkflowRequest): Promise<WorkflowRun> { |
| 101 | return this.request<WorkflowRun>(`/v1/workflows/${workflowId}/execute`, { |
| 102 | method: "POST", |
| 103 | body: request, |
| 104 | }); |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * 暂停 Workflow 执行 |