You need to enable JavaScript to run this app.
文档中心
AI 数据湖服务

AI 数据湖服务

复制全文
下载 pdf
工作流模板
UpdateWorkflow - 更新工作流
复制全文
下载 pdf
UpdateWorkflow - 更新工作流
更新工作流
调试
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
请求参数
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数
Action string 必选 示例值:UpdateWorkflow
要执行的操作,取值:UpdateWorkflow。
Version string 必选 示例值:2025-08-15
API的版本,取值:2025-08-15。
Name string 必选 示例值:workflow_name
工作流名称
Content string 必选 示例值:详情请参见下文的”请求参数 Content 示例“章节
工作流内容,使用 argo yaml 编排, task_parameters 为 RunTaskInstance 的 json 字符串
WorkflowId string 必选 示例值:wf-tpl-xxx
工作流 Id
ClientToken string 可选 示例值:uuid-xxxxxx
客户端token
Description string 可选 示例值:description
工作流描述
返回参数
本接口无特有的返回参数。更多信息请见返回结构
请求示例
POST https://open.volcengineapi.com
{
"Name": "workflow_name",
"Content": "apiVersion: argoproj.io/v1alpha1\nkind: Workflow\nmetadata:\n generateName: las-task-\nspec:\n entrypoint: main\n templates:\n - name: main\n dag:\n tasks:\n - name: las-task\n templateRef:\n name: las-system-template\n template: las-task\n clusterScope: true\n arguments:\n parameters:\n - name: task_id\n value: \"Ray-xxx\"\n - name: task_resources\n value: '{\"QueueResourceId\":\"PUBLIC_resource_xxx\",\"RayParams\":{\"WorkerCpu\":1,\"WorkerMemory\":8,\"WorkerGpuNum\":1,\"HeadCpu\":1,\"HeadMemory\":4}}'",
"WorkflowId": "wf-tpl-xxx",
"ClientToken": "",
"Description": "description"
}
返回示例
{
"ResponseMetadata": {
"Action": "UpdateWorkflow",
"Region": "cn-beijing",
"Service": "las",
"Version": "2025-08-15",
"RequestId": "20230604110420****100232280022D31",
"Deprecated": true
},
"Result": {}
}
错误码
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码
错误码
错误信息
说明
400
InvalidParameter
The specified parameter {} is invalid.
指定的参数 {} 无效。
400
DryRunOperation
The request is validated by a dryrun operation.
该请求通过 dryrun 操作进行验证。
400
InvalidRequestParam
Invalid request param {}, cause {}
非法请求参数 {}, 原因 {}
400
MissingParameter
The required parameter {} is missing.
缺少必需的参数 {}。
500
InternalError
The request has failed due to an unknown error.
由于未知错误,请求失败。
请求参数 Content 示例
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: las-task-
spec:
entrypoint: main
templates:
- name: main
dag:
tasks:
- name: las-task
templateRef:
name: las-system-template
template: las-task
clusterScope: true
arguments:
parameters:
- name: task_id
value: "t-xxx"
- name: task_parameters
value: "{\"ResourceId\":\"PUBLIC_resource_xxx\", \"DaftResourceConf
最近更新时间:2026.08.18 11:54:15
这个页面对您有帮助吗?
有用
有用
无用
无用