All Products
Search
Document Center

DataWorks:AddMetaCollectionEntity

Last Updated:Nov 21, 2024

Adds an entity to a collection.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
CollectionQualifiedNamestringYes

The unique identifier of the collection.

album.2222
EntityQualifiedNamestringYes

The unique identifier of the entity. Example: maxcompute-table.projectA.tableA.

maxcompute-table.projectA.tableB
RemarkstringNo

The remarks of the entity. Example: latest product table.

this is a remark

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID. You can use the request ID to query logs and troubleshoot issues.

0000-ABCD-E****
Statusboolean

The result of the operation. Valid values:

  • true: succeeded
  • false: failed
true
HttpStatusCodeinteger

The HTTP status code.

200
ErrorMessagestring

The error message.

The specified product does not exist.
ErrorCodestring

The error code.

9999
Successboolean

Indicates whether the request was successful. Valid values:

true false

true

Examples

Sample success responses

JSONformat

{
  "RequestId": "0000-ABCD-E****",
  "Status": true,
  "HttpStatusCode": 200,
  "ErrorMessage": "The specified product does not exist.",
  "ErrorCode": "9999",
  "Success": true
}

Error codes

HTTP status codeError codeError message
400Invalid.Entity.NotExist%s

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-08-09The Error code has changed. The request parameters of the API has changedView Change Details