You can call this operation to create a folder.

Request parameters

Name Type Required Example Description
Name String Yes myFolder The name of the folder.
ProjectId String Yes F-48EB68215AEAE28D The ID of the project.
RegionId String Yes cn-hangzhou The ID of the region.
Type String Yes FLOW The type of the category. Valid values: FLOW, JOB, and ADHOC.
ParentId String No FC-AF08490649B8FD5E The ID of the parent category. If not specified, the ID of the root category is assigned.

Response parameters

Name Type Example Description
RequestId String 2670BCFB-925D-4C3E-9994-8D12F7A9F538 The ID of the request.
Id String FC-AF08490649B8FD5E The ID of the folder that has been created.

Examples

  • Sample requests
    /? Action=CreateFlowCategory
    &Name=myFolder
    &ProjectId=F-48EB68215AEAE28D
    &RegionId=cn-hangzhou
    &Type=FLOW
    &ParentId=FC-AF08490649B8FD5E
    &<Common request parameters>
  • Successful response examples
    JSON format
    {
    	"Id":"FC-AF08490649B8FD5E",
    	"RequestId":"2670BCFB-925D-4C3E-9994-8D12F7A9F538"
    }
  • Error response examples
    JSON format
    {
    	"code":"FLOW_API_FAILED",
    	"message":"Project does not exist [FP-C05787BC0EC88258]",
    	"requestId":"11BAFBD8-8509-4177-A26D-407505E73713",
    	"successResponse":false
    }

Error codes

View error codes.