Updates information about a workflow.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resourcesis used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
| Operation | Access level | Resource type | Condition key | Associated operation |
|---|---|---|---|---|
| composer:UpdateFlow | Write |
|
| none |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| FlowId | string | Yes | The ID of the workflow whose information you want to update. | lc-uf6axpwfcw4ubx |
| FlowName | string | No | The new name that you want to specify for the workflow. | test |
| FlowDescription | string | No | The new description that you want to specify for the workflow. | This is the description of the workflow. |
| Definition | string | No | The new definition that you want to specify for the workflow. | {\"schemaVersion\":\"2018-12-12\",\"actions\":{},\"version\":\"1.0.0\",\"triggers\":{}} |
Response parameters
Examples
Sample success responses
JSONformat
{
"CurrentVersionId": 0,
"RequestId": "ADB97A33-50E7-48A5-963D-ACBAE36D0BEC",
"Success": true
}Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidDefinition.Format | The specified workflow definition is incorrectly formatted. It must be valid JSON content. | The content of the workflow is invalid. The content must be in the JSON format. |
| 400 | InvalidParameter.Definition | The specified definition is invalid. | The specified definition is invalid. |
| 400 | InvalidParameter.Description.Length | The specified description cannot be more than 255 characters in length. | The specified description cannot be more than 255 characters in length. |
| 400 | InvalidParameter.Name | The specified name is invalid. | The specified name is invalid. |
| 400 | InvalidParameter.Name.Length | The specified name cannot be more than 100 characters in length. | The specified name cannot be more than 100 characters in length. |
| 403 | NoPermission | You are not authorized to perform this operation. %s. | You are not authorized to perform this operation. |
| 404 | InvalidFlow.NotFound | The specified workflow does not exist. Verify the availability of the workflow. | The specified workflow does not exist. Make sure the workflow is available. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2022-11-21 | API Description Update. The Error code has changed | see changesets | ||||||||||
|
