RenameWorkflowDefinition
Renames a data development workflow.
Operation description
Before you begin
Activate DataWorks and create a workspace. You can call ListProjects to query existing workspaces and use the ID of the target workspace in the response as the value of ProjectId.
Ensure that the calling account has data development edit permissions for the target workspace.
Call ListWorkflowDefinitions in the target workspace to query the workflow that you want to rename, and pass its ID to the Id parameter.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Configuration page to obtain the workspace ID. This parameter specifies the DataWorks workspace for this API operation. |
10000 |
| Id |
string |
Yes |
The unique identifier of the data development workflow. Important This field was of the Long type before SDK version 8.0.0, and is of the String type in SDK version 8.0.0 and later. This change does not affect the normal use of the SDK, and the parameter is still returned based on the type defined in the SDK. The type change may cause project compilation failures only when you upgrade the SDK across version 8.0.0. In this case, you must manually correct the data type. |
463497880880954**** |
| Name |
string |
Yes |
The new name. |
Rename |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. You can use this ID to troubleshoot issues. |
975BD43D-C421-595C-A29C-565A8AD5XXXX |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "975BD43D-C421-595C-A29C-565A8AD5XXXX",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.