UpdateProcessDefinition

Updated at:

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.

  • Id is a required parameter used to specify the approval process definition to be updated.

  • To overwrite the existing configuration, set the Overwrite parameter to true.

  • ClientToken is optional and used to ensure the idempotency of the request.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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

  • hologresInstanceId

  • sensibleLevel

  • tableGuid

  • projectId

odpsProject

Scope

string

No

The stage where the rule takes effect. Valid values:

  • Deployment: Used to determine whether the approval policy is matched when the application is submitted.

  • Running: Used to determine whether to skip approval while the approval process runs. [Supported only for MaxCompute]

Deployment

Expression

string

No

The conditional expression, such as ((#type=='typeValue')) or ((#odpsProject=='PX_BEIJING_TEST')).

((#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:

  • Mail

  • Sms

  • DingRobot

  • Weixin

Mail

Extension

string

No

The extended information in JSON format. For example, {"atAll":"true"} specifies whether to mention all users.

{"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:

  • DataWorksProjectRole: Workspace role

  • DataWorksProjectMember: Workspace member

  • TableAdministrator: Table owner

  • TableOrProjectAdministrator: Table or workspace administrator

  • AliyunResourceOwner: Alibaba Cloud account

  • MaxComputeRole: MaxCompute administrator

  • DLFAdmin: DLF legacy administrator

  • DLFNextAdmin: DLFNext administrator

  • TenantRole: Tenant role

  • EmrAdministrator: EMR administrator

  • LindormAdministrator: Lindorm administrator

  • AliyunRamUser: RAM user

TableOrProjectAdministrator

Assignees

string

No

The assignees. The semantics vary based on the AccountType:

  • DataWorksProjectMember: Specifies the user ID of the workspace member.

  • DataWorksProjectRole: Specifies the code of the workspace role.

  • MaxComputeRole: Specifies the MaxCompute role.

  • TenantRole: Specifies the code of the tenant role.

  • AliyunRamUser: Specifies the RAM user ID.

DataWorksProjectMember

ExtensionProperties

object

No

The extension properties. Different additional declarations are required based on the AccountType:

  • DataWorksProjectMember: The key is projectId, and the value is the user ID of the workspace member. Separate multiple values with commas.

  • MaxComputeRole: The key is the MaxCompute project, and the value is the role name in MaxCompute. Separate multiple values with commas.

{"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.