Creates and imports a flow.
Operation description
-
You can call this operation to create and import a flow, or manually create and import a flow in the flow orchestration console.
-
Before calling this operation, make sure you have exported flow DSL data.
-
If you do not have exported flow DSL data, go to the flow orchestration console, click a flow name to open the canvas orchestration page, arrange canvas components, save the flow, and export it as a JSON data file.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cams:CreateChatFlowByImport |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Title |
string |
No |
The flow title. |
WhatsApp Trigger Subscription. |
| Remark |
string |
No |
The flow remarks. |
Trigger Subscription. |
| FlowViewModel |
string |
No |
The imported flow DSL data, which is a JSON-formatted string. You can arrange flow components on the canvas in the flow orchestration console in advance, save the flow, and then click Settings > Export in the upper-right corner of the canvas to export a JSON data file for viewing. |
{ "schema": { "namespace": "External", "version": "1.0", "copyright": "Alibaba Cloud" }, "editor": "H4sIAAAAAAAAA+1YbU/c***********************", "flow": { "triggerType": "TriggeredByWhatsApp" } } |
| BizCode |
string |
No |
The business tenant code. Default value: ALICOM_OPAAS. Valid values:
|
ALICOM_OPAAS |
| BizExtend |
object |
No |
The business extension information. Default value: an empty collection. |
{} |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| 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 |
| Data |
object |
The returned data object. |
|
| 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
{
"AccessDeniedDetail": "None",
"RequestId": "90E63D28-E31D-1EB2-8939-A94866411B2O",
"Message": "None",
"Data": {
"test": "test",
"test2": 1
},
"Code": "OK",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.