You can call this operation to rename a directory.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyFlowCategory

The operation that you want to perform. Set this parameter to ModifyFlowCategory.

Id String Yes FC-ABCDEFGHI****

The ID of the directory.

ProjectId String Yes FP-ABCDEFGHI****

The ID of the project.

RegionId String Yes cn-hangzhou

The ID of the region.

Name String No Test

The new name of the directory.

ParentId String No FC-ABCDEFGHI****

The ID of the parent directory.

Response parameters

Parameter Type Example Description
Data Boolean true

The modification result. The value true indicates that the modification was successful, and false indicates that the modification failed.

RequestId String CEA9AFD2-B340-41F4-A661-8916CBF07C32

The ID of the request.

Examples

Sample request


http(s)://[Endpoint]/? Action=ModifyFlowCategory
&Id=FC-ABCDEFGHI****
&ProjectId=FP-ABCDEFGHI****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success response

XML format

<ModifyFlowCategoryResponse>
  <code>200</code>
	  <data>
		    <RequestId>CEA9AFD2-B340-41F4-A661-8916CBF07C32</RequestId>
		    <Data>true</Data>
	  </data>
	  <requestId>CEA9AFD2-B340-41F4-A661-8916CBF07C32</requestId>
	  <successResponse>true</successResponse>
</ModifyFlowCategoryResponse>

JSON format

{
	"successResponse":true,
	"requestId":"CEA9AFD2-B340-41F4-A661-8916CBF07C32",
	"data":{
		"Data":true,
		"RequestId":"CEA9AFD2-B340-41F4-A661-8916CBF07C32"
	},
	"code":"200"
}

Error codes

For more information about error codes, see API Error Center.