UpdateMetaTable
Updates the metadata of a table.
Operation description
This operation supports only MaxCompute tables.
Prerequisites: Before calling this operation, you must activate DataWorks Enterprise Edition or Ultimate Edition. Otherwise, the operation returns a 403 Forbidden.Access error.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. |
101 |
| TableName |
string |
Yes |
The name of the table. |
table1 |
| EnvType |
integer |
Yes |
The DataWorks environment. Valid values: 0 (development environment) and 1 (production environment). |
1 |
| TableGuid |
string |
No |
The unique identifier of the table. The format is odps.{projectName}.{tableName}. |
odps.test.table1 |
| NewOwnerId |
string |
No |
The new owner ID. If this parameter is left empty, the owner ID is not updated. |
12345 |
| AddedLabels |
string |
No |
The names of the labels to add. Separate multiple names with commas (,). |
a,b,c |
| RemovedLabels |
string |
No |
The names of the labels to delete. Separate multiple names with commas (,). |
a,b,c |
| CategoryId |
integer |
No |
The ID of the category to associate. |
101 |
| Visibility |
integer |
No |
The visibility of the table. Valid values: 0 (invisible), 1 (visible), and 2 (visible within the workspace). |
1 |
| Caption |
string |
No |
The Chinese name of the table. |
|
| Schema |
string |
No |
The schema information of the table. If the three-level model is enabled in MaxCompute, you must specify the schema information. |
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| UpdateResult |
boolean |
Indicates whether the update was successful. |
true |
| RequestId |
string |
The request ID. |
abcde |
Examples
Success response
JSON format
{
"UpdateResult": true,
"RequestId": "abcde"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. | No permission, please authorize |
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.