更新时间:2022-09-14 GMT+08:00
分享

更新工作流

功能介绍

本接口用于更新工作流参数值。

请求消息样式

PUT /v2/workflows/{graph_name} HTTP/1.1
Host: obs.cn-north-4.myhuaweicloud.com 
Authorization: authorization
Content-Type: application/json
Content-Length: length
Date: date

json body

请求消息参数

表1 请求消息参数

名称

是否必选

参数类型

说明

约束

graph_name

String

工作流名称。

名称必须以字母或数字开头,只能由字母、数字、下划线和中划线组成,长度小于等于64个字符。

请求消息头

该请求使用公共消息头,具体参见表3

请求消息元素

表2 请求参数元素

名称

是否必选

参数类型

说明

约束

parameters

Array Input

工作流中每个Action的可修改参数列表。

-

响应消息样式

HTTP/1.1 status_code 
Date: date 
Content-Length: length 
X-Request-ID: obs request id

json body

响应消息头

该请求的响应消息使用公共消息头,具体请参考表1

响应消息元素

表3 响应元素

名称

参数类型

说明

graph_name

String

工作流名称。

graph_urn

String

工作流的URN。

last_modified

String

工作流更新的时间。

错误响应消息

无特殊错误,所有错误已经包含在表2中。

请求示例

PUT /v2/workflows/{graph_name} HTTP/1.1
Host: obs.cn-north-4.myhuaweicloud.com 
Date: Thu, 27 Aug 2020 12:38:10 GMT
Authorization: OBS H4IPJX0TQTHTHEBQQCEC:sc2PM13Wlfcoc/YZLK0MwsI2Zpo=
Content-Type: application/json
Content-Length: 100

{
    "parameters": {
        "transcode-template-id": 1234567
    }
}

响应示例

HTTP/1.1 200 OK 
Date: Thu, 27 Aug 2020 12:38:10 GMT 
Content-Length: 10 
X-Request-ID: 000001742FE8FB3CCA20173B00807C43

{
    "graph_name": "test-graph",
    "graph_urn": "urn:obs:cn-north-5:3f1e6caf808246c68457e660e4bfeb2f:graph:test-graph",
    "last_modified": "2020-08-26T07:37:36.131Z"
}
分享:

    相关文档

    相关产品