Updating a Workflow
Functions
Updates workflow parameter values.
Request Syntax
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
Request parameters
|
Parameter |
Mandatory |
Type |
Description |
Constraints |
|---|---|---|---|---|
|
graph_name |
Yes |
String |
Workflow name |
The name should start with a letter or digit, and contain a maximum of 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
Request Headers
This request uses common headers. For details, see Table 3.
Request Elements
|
Parameter |
Mandatory |
Type |
Description |
Constraints |
|---|---|---|---|---|
|
parameters |
No |
Array Input |
Parameters that can be modified for each action in a workflow |
- |
Response Syntax
HTTP/1.1 status_code Date: date Content-Length: length X-Request-ID: obs request id json body
Response Headers
The response to the request uses common headers. For details, see Table 1.
Response Elements
|
Parameter |
Type |
Description |
|---|---|---|
|
graph_name |
String |
Workflow name |
|
graph_urn |
String |
Workflow URN |
|
last_modified |
String |
Update time of a workflow |
Error Responses
No special error responses are returned. For details about error responses, see Table 2.
Sample Request
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
}
}
Sample Response
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"
}
Last Article: Deleting a Workflow
Next Article: Querying the Workflow List
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.