CreateMetaCollection

更新时间:
复制 MD 格式

Creates a collection.

Operation description

Collections have multiple types. Names must be unique within each type.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Name

string

Yes

The collection name, which must be 1 to 32 characters in length.

collection_name

Comment

string

No

The collection comment, which must be 1 to 64 characters in length.

this is a comment

ParentQualifiedName

string

No

The unique identifier of the parent collection.

album.333508

CollectionType

string

Yes

The type of the collection.

ALBUM

A category must belong to a data album. Create the data album first, then set ParentQualifiedName to its unique identifier to create a category under it.

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

E6F0DBDD-5AD****

QualifiedName

string

The unique identifier of the collection.

album.11111

Success

string

Indicates whether the request was successful. Valid values:

  • true

  • false

true

ErrorCode

string

The error code.

NoPermission

ErrorMessage

string

The error message.

The specified parameters are invalid.

HttpStatusCode

string

The HTTP status code.

200

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.