All Products
Search
Document Center

DataWorks:CreateMetaCollection

Last Updated:Nov 21, 2024

Creates a collection.

Operation description

Collections are classified into various types. The names of collections of the same type must be different.

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
NamestringYes

The name of the collection. The name must be 1 to 32 characters in length.

collection_name
CommentstringNo

The comment of the collection. The comment must be 1 to 64 characters in length.

this is a comment
ParentQualifiedNamestringNo

The unique identifier of the parent collection.

album.333508
CollectionTypestringYes

The type of the collection.

ALBUM

A category must belong to a data album. You can create a category in a data album only after you create the data album. You can set the parentQualifiedName parameter to the unique identifier of the data album to create the category.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

E6F0DBDD-5AD****
QualifiedNamestring

The unique identifier of the collection.

album.11111
Successstring

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

NoPermission
ErrorMessagestring

The error message.

The specified parameters are invalid.
HttpStatusCodestring

The HTTP status code.

200

Examples

Sample success responses

JSONformat

{
  "RequestId": "E6F0DBDD-5AD****",
  "QualifiedName": "album.11111",
  "Success": "true",
  "ErrorCode": "NoPermission",
  "ErrorMessage": "The specified parameters are invalid.",
  "HttpStatusCode": "200"
}

Error codes

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

Change history

Change timeSummary of changesOperation
No change history