UpdateProcessDefinition
Updates an existing approval process definition.
Operation description
Request description
This operation allows you to modify an existing approval process definition, including the name, description, rule conditions, notification services, and approval nodes.
Idis a required parameter used to specify the approval process definition to be updated.To overwrite the existing configuration, set the
Overwriteparameter totrue.ClientTokenis optional and used to ensure the idempotency of the request.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:UpdateProcessDefinition |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The ID of the approval process definition. |
177554881536128 |
| Name |
string |
No |
The name of the approval process definition. |
MaxCompute table approval |
| Description |
string |
No |
The description of the approval process definition. |
Approval policy for MaxCompute tables in the lwt_ide_simple project |
| RuleConditions |
array<object> |
No |
The list of conditional rules. Note: System policies do not take effect. |
|
|
object |
No |
The conditional rule. |
||
| Type |
string |
No |
The condition type. Valid values:
|
odpsProject |
| Scope |
string |
No |
The stage where the rule takes effect. Valid values:
|
Deployment |
| Expression |
string |
No |
The conditional expression, such as |
((#odpsProject=='PX_BEIJING_TEST')) |
| NotificationServices |
array<object> |
No |
The notification service declaration. |
|
|
object |
No |
The notification service. |
||
| Channel |
string |
No |
The notification channel. Valid values:
|
|
| Extension |
string |
No |
The extended information in JSON format. For example, |
{"atAll":"true"} |
| Receiver |
string |
No |
The Webhook URL. This parameter is required when the channel is DingRobot or Weixin. |
https://dingtalk.com |
| ApprovalNodes |
array<object> |
No |
The list of approval nodes. Note: System policies do not take effect. |
|
|
array<object> |
No |
The approval node. |
||
| Name |
string |
No |
The name of the node. |
default-name |
| AccountType |
string |
No |
The type of approver for the node. Valid values:
|
TableOrProjectAdministrator |
| Assignees |
string |
No |
The assignees. The semantics vary based on the AccountType:
|
DataWorksProjectMember |
| ExtensionProperties |
object |
No |
The extension properties. Different additional declarations are required based on the AccountType:
|
{"449656": "role_project_admin,role_project_pe"} |
|
any |
No |
The extension description. |
{ "449656": "role_project_admin,role_project_pe" } |
|
| ClientToken |
string |
No |
The idempotency token. Used to prevent duplicate operations caused by multiple calls. |
1AFAE64E-D1BE-432B-A9**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The error code in the API response. This field is not empty if an error occurs during the call. |
||
| RequestId |
string |
The ID of the API request. |
0bc5df3a17****903790e8e8a |
Examples
Success response
JSON format
{
"RequestId": "0bc5df3a17****903790e8e8a"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.