You can call the CreateFlowCategory operation to create a workflow directory folder.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateFlowCategory |
The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Set the value to CreateFlowCategory. |
Name | String | Yes | myFolder |
The name of the directory. You can call ListFlowProject View data on the Member Management page. |
ProjectId | String | Yes | FP-AC84F265C8E4**** |
The ID of the project. You can call ListFlowProject View data on the Member Management page. |
RegionId | String | Yes | cn-hangzhou |
The region ID. You can call DescribeRegions To view the latest list of Alibaba Cloud regions. |
Type | String | Yes | FLOW |
The type of the directory. Valid values:
|
ParentId | String | No | FC-AF08490649B8**** |
The ID of the parent directory. If it is null, the default value is root The information of a directory. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Id | String | FC-AF08490649B8**** |
The ID of the created directory. |
RequestId | String | 2670BCFB-925D-4C3E-9994-8D12F7A9F538 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=CreateFlowCategory
&Name=myFolder
&ProjectId=FP-AC84F265C8E4****
&RegionId=cn-hangzhou
&Type=FLOW
&<common request parameters>
Sample success responses
XML
format
<RequestId>2670BCFB-925D-4C3E-9994-8D12F7A9F538</RequestId>
<Id>FC-AF08490649B8****</Id>
JSON
Syntax
{
"RequestId": "2670BCFB-925D-4C3E-9994-8D12F7A9F538",
"Id": "FC-AF08490649B8****"
}