Updates an existing approval process definition.
Operation description
Request
Use this API to modify an existing approval process definition, including its name, description, rule conditions, notification service, and approval nodes.
The required
Idparameter identifies the approval process definition to update.To overwrite the existing configuration, set the
Overwriteparameter totrue.The optional
ClientTokenparameter ensures request idempotency.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
string |
Yes |
The process definition ID. |
177554881536128 |
| Name |
string |
No |
The name of the process definition. |
MaxCompute Table Approval |
| Description |
string |
No |
The description of the process definition. |
Approval policy for MaxCompute tables in the lwt_ide_simple project |
| RuleConditions |
array |
No |
The list of rule conditions. Note: System policies do not take effect. |
|
|
object |
No |
A rule condition. |
||
| Type |
string |
No |
The condition type. Valid values:
|
odpsProject |
| Scope |
string |
No |
The stage at which the rule takes effect:
|
Deployment |
| Expression |
string |
No |
The condition expression in the format ((#type=='typeValue')). Example: ((#odpsProject=='PX_BEIJING_TEST')). |
((#odpsProject=='PX_BEIJING_TEST')) |
| NotificationServices |
array |
No |
The notification service declarations. |
|
|
object |
No |
A notification service. |
||
| Channel |
string |
No |
The notification channel. Valid values:
|
|
| Extension |
string |
No |
The extension information in JSON format, such as {"atAll":"true"} to specify whether to @mention all members. |
{"atAll":"true"} |
| Receiver |
string |
No |
The webhook URL. This parameter is required when Channel is set to DingRobot or Weixin. |
https://dingtalk.com |
| ApprovalNodes |
array |
No |
The list of approval nodes. Note: System policies do not take effect. |
|
|
array |
No |
An approval node. |
||
| Name |
string |
No |
The name of the node. |
default-name |
| AccountType |
string |
No |
The type of the node approver. Valid values:
|
TableOrProjectAdministrator |
| Assignees |
string |
No |
The value of this parameter varies based on the AccountType:
|
DataWorksProjectMember |
| ExtensionProperties |
object |
No |
The additional declarations required vary based on the
|
|
|
any |
No |
The extension description. |
{ "449656": "role_project_admin,role_project_pe" } |
|
| ClientToken |
string |
No |
The idempotency parameter. This parameter is used to prevent duplicate operations caused by multiple API calls. |
1AFAE64E-D1BE-432B-A9**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The error code of the API request response. This parameter is not empty if an error occurs. |
||
| RequestId |
string |
The request ID. |
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.