Updates the DSL data of a flow version, used for updating the flow version on the canvas.
Operation description
-
You can call this operation to update the DSL data of a flow version, or click a flow name on the flow editor page to go to the canvas orchestration page and update the DSL data of the flow version.
-
Before calling this operation, make sure that you have created a flow and the flow status is offline.
-
If you have not created a flow, you can manually create a flow on the flow editor page or create a flow by calling the CreateChatFlow operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:UpdateFlowVersion |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FlowCode |
string |
No |
The flow code. You can view the flow code on the flow editor page. |
9ccc41************************** |
| FlowVersion |
string |
No |
The flow version. You can click a flow name on the flow editor page to go to the flow editor canvas page and view the flow version. |
1 |
| FlowViewModel |
string |
No |
The DSL data of the flow version. This is a JSON-formatted data string. You can orchestrate flow components on the flow editor canvas in advance, save the flow, and then click Settings > Export in the upper-right corner of the canvas orchestration page to export a JSON-formatted data file for viewing. |
{ "schema": { "namespace": "External", "version": "1.0", "copyright": "Alibaba Cloud" }, "editor": "H4sIAAAAAAAAA+1YbU/c***********************", "flow": { "triggerType": "TriggeredByWhatsApp" } } |
| Remark |
string |
No |
The version remarks. |
Fix WhatsApp message sending error |
| BizCode |
string |
No |
The business tenant code. Default value: ALICOM_OPAAS. |
ALICOM_OPAAS |
| BizExtend |
object |
No |
The business extension information. Default value: an empty collection. |
{} |
|
No |
The save type. |
Sample value |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Response |
object |
The response content. |
436489 |
| AccessDeniedDetail |
string |
The details about the access denial. |
None |
| RequestId |
string |
The request ID. |
90E63D28-E31D-1EB2-8939-A94866411B2O |
| Message |
string |
The error message. |
None |
| Code |
string |
The error code. For more information, see Error codes. |
OK |
| Success |
boolean |
Indicates whether the operation was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Response": 436489,
"AccessDeniedDetail": "None",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O",
"Message": "None",
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.