全部產品
Search
文件中心

DataWorks:UpdateMetaTable - 更新表的Meta資訊

更新時間:Mar 21, 2026

該介面用於更新表的Meta資訊。

介面說明

該介面僅支援 MaxCompute 引擎表。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

ProjectId

integer

DataWorks 工作空間的 ID。

101

TableName

string

表的名稱。

table1

EnvType

integer

DataWorks 的環境,包括 0(開發環境)和 1(生產環境)。

1

TableGuid

string

表的唯一標識,格式為 odps.{projectName}.{tableName}。

odps.test.table1

NewOwnerId

string

新的 OwnerId,為空白時不更新。

12345

AddedLabels

string

需要增加的標籤名稱,使用英文逗號(,)分隔。

a,b,c

RemovedLabels

string

需要刪除的標籤名稱,使用英文逗號(,)分隔。

a,b,c

CategoryId

integer

需要關聯的類目 ID。

101

Visibility

integer

編輯表的可見度,包括 0(不可見)、1(可見)和 2(工作空間可見)。

1

Caption

string

表的中文名稱。

中文名

Schema

string

表 Schema 資訊。在 ODPS,使用者啟動了三層模型需要填寫 Schema 資訊。

default

返回參數

名稱

類型

描述

樣本值

object

UpdateResult

boolean

是否更新成功。

true

RequestId

string

請求 ID。

abcde

樣本

正常返回樣本

JSON格式

{
  "UpdateResult": true,
  "RequestId": "abcde"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. 沒有許可權,請授權
429 Throttling.Api The request for this resource has exceeded your available limit.
429 Throttling.Api.Risk The request for this resource has exceeded your daily available limit.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情