All Products
Search
Document Center

DataWorks:UpdateProcessDefinition

Last Updated:Jun 11, 2026

Memperbarui definisi proses persetujuan yang ada.

Deskripsi operasi

Request

  • Use this API to modify an existing approval process definition, including its name, description, rule conditions, notification service, and approval nodes.

  • The required Id parameter identifies the approval process definition to update.

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

  • The optional ClientToken parameter ensures request idempotency.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

Id

string

Yes

ID definisi proses.

177554881536128

Name

string

No

Nama definisi proses.

MaxCompute 表审批

Description

string

No

Deskripsi definisi proses.

lwt_ide_simple 项目 MaxCompute 表审批策略

RuleConditions

array<object>

No

Daftar kondisi aturan. Parameter ini tidak berlaku untuk kebijakan sistem.

object

No

A rule condition.

Type

string

No

The type of the condition. Valid values:

  • odpsProject

  • hologresInstanceId

  • sensibleLevel

  • tableGuid

  • projectId

odpsProject

Scope

string

No

The phase in which the rule takes effect. Valid values:

  • Deployment: Determines whether the approval policy applies when an application is submitted.

  • Running: Determines whether to skip the approval during the approval process. This phase is supported only for MaxCompute.

Deployment

Expression

string

No

The conditional expression. Format: ((#type=='typeValue')). For example: ((#odpsProject=='PX_BEIJING_TEST')).

((#odpsProject=='PX_BEIJING_TEST'))

NotificationServices

array<object>

No

Konfigurasi layanan notifikasi.

object

No

A notification service.

Channel

string

No

The notification channel. Valid values:

  • Mail

  • Sms

  • DingRobot

  • Weixin

Mail

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 Channel is set to DingRobot or Weixin.

https://dingtalk.com

ApprovalNodes

array<object>

No

Daftar node persetujuan. Parameter ini tidak berlaku untuk kebijakan sistem.

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:

  • DataWorksProjectRole: A workspace role.

  • DataWorksProjectMember: A workspace member.

  • TableAdministrator: A table administrator.

  • TableOrProjectAdministrator: The administrator of the table or project.

  • AliyunResourceOwner: An Alibaba Cloud account.

  • MaxComputeRole: A MaxCompute administrator.

  • DLFAdmin: A DlfLegacy administrator.

  • DLFNextAdmin: A DLFNext administrator.

  • TenantRole: A tenant role.

  • EmrAdministrator: An EMR administrator.

  • LindormAdministrator: A Lindorm administrator.

  • AliyunRamUser: A RAM user.

TableOrProjectAdministrator

Assignees

string

No

Specifies the approvers. The required value depends on the AccountType:

  • If AccountType is DataWorksProjectMember, this parameter specifies the user IDs of workspace members.

  • If AccountType is DataWorksProjectRole, this parameter specifies the codes of workspace roles.

  • If AccountType is MaxComputeRole, this parameter specifies the MaxCompute roles.

  • If AccountType is TenantRole, this parameter specifies the codes of tenant roles.

  • If AccountType is AliyunRamUser, this parameter specifies the user IDs of RAM users.

DataWorksProjectMember

ExtensionProperties

object

No

Additional properties that are required for specific AccountType values:

  • If AccountType is DataWorksProjectMember: The key is projectId and the value is the user ID of a workspace member. Use commas (,) to separate multiple user IDs.

  • If AccountType is MaxComputeRole: The key is the MaxCompute project name and the value is the role name in MaxCompute. Use commas (,) to separate multiple role names.

any

No

Additional properties.

{ "449656": "role_project_admin,role_project_pe" }

ClientToken

string

No

Parameter idempoten. Parameter ini memastikan bahwa permintaan yang diulang tidak menghasilkan operasi duplikat.

1AFAE64E-D1BE-432B-A9****

Elemen respons

Element

Type

Description

Example

object

The data returned for the request.

RequestId

string

The request ID.

0bc5df3a17****903790e8e8a

Contoh

Respons sukses

JSONformat

{
  "RequestId": "0bc5df3a17****903790e8e8a"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.