Adds tags to data assets.
Operation description
This API operation is available only for DataWorks Enterprise Edition or a more advanced edition.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Tags | array<object> | Yes | The tags that you want to add to data assets. | |
| object | Yes | The tag that you want to add to data assets, in the key:value structure. | ||
| Key | string | Yes | The tag key. | key |
| Value | string | No | The tag value. | value |
| DataAssetIds | array | Yes | The data asset IDs. | |
| string | Yes | The data asset ID. | 7259557000 | |
| DataAssetType | string | Yes | The type of the data asset. Valid values:
| ACS::DataWorks::Task |
| ProjectId | long | No | The DataWorks workspace ID. | 10000 |
| EnvType | string | No | The environment of the workspace to which the data asset belongs. Valid values:
| Prod |
| AutoTraceEnabled | boolean | No | Specifies whether to enable lineage-based automatic backtracking. | false |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "0bc1ec92159376",
"Success": true
}Error codes
| HTTP status code | Error code | Error message |
|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
For a list of error codes, visit the Service error codes.
Change history
| Change time | Summary of changes | Operation |
|---|
No change history
