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 ID of the process definition. |
177554881536128 |
| Name |
string |
No |
The name of the process definition. |
MaxCompute 表审批 |
| Description |
string |
No |
The description of the process definition. |
lwt_ide_simple 项目 MaxCompute 表审批策略 |
| RuleConditions |
array<object> |
No |
A list of rule conditions. This parameter does not apply to system policies. |
|
|
object |
No |
A rule condition. |
||
| Type |
string |
No |
The type of the condition. Valid values:
|
odpsProject |
| Scope |
string |
No |
The phase in which the rule takes effect. Valid values:
|
Deployment |
| Expression |
string |
No |
The conditional expression. Format: ((#type=='typeValue')). For example: ((#odpsProject=='PX_BEIJING_TEST')). |
((#odpsProject=='PX_BEIJING_TEST')) |
| NotificationServices |
array<object> |
No |
The notification service configurations. |
|
|
object |
No |
A notification service. |
||
| Channel |
string |
No |
The notification channel. Valid values:
|
|
| Extension |
string |
No |
Additional information in JSON format. For example, use {"atAll":"true"} to specify whether to notify all members. |
{"atAll":"true"} |
| Receiver |
string |
No |
The webhook URL. This parameter is required when |
https://dingtalk.com |
| ApprovalNodes |
array<object> |
No |
A list of approval nodes. This parameter does not apply to system policies. |
|
|
array<object> |
No |
An approval node. |
||
| Name |
string |
No |
The name of the node. |
default-name |
| AccountType |
string |
No |
The approver type for the node. Valid values:
|
TableOrProjectAdministrator |
| Assignees |
string |
No |
Specifies the approvers. The required value depends on the
|
DataWorksProjectMember |
| ExtensionProperties |
object |
No |
Additional properties that are required for specific
|
|
|
any |
No |
Additional properties. |
{ "449656": "role_project_admin,role_project_pe" } |
|
| ClientToken |
string |
No |
An idempotent parameter. It ensures that retried requests do not result in duplicate operations. |
1AFAE64E-D1BE-432B-A9**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned for the request. |
||
| 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.