Queries a list of collections in Data Map. Collections include categories and data albums.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Type | string | Yes | The collection type. Valid values:
| Category |
| ParentId | string | No | The ID of the parent collection. | category.123 |
| Name | string | No | The collection name. Supports fuzzy matching. | test |
| Description | string | No | The collection description. Supports fuzzy matching. | |
| CreateUser | string | No | The creator user ID. Valid only for album types. Default: The current user ID. | 123456 |
| Administrator | string | No | The administrator ID. Valid only for album types. Default: The current user ID. | 12345 |
| SortBy | string | No | The sort field. Valid values:
| Name |
| Order | string | No | The sort order. Valid values:
| Asc |
| PageNumber | integer | No | The page number. Default: 1. | 1 |
| PageSize | integer | No | The number of entries per page. Default: 10. Maximum: 100. | 10 |
Response parameters
Examples
Sample success responses
JSONformat
{
"RequestId": "E25887B7-579C-54A5-9C4F-83A0DE367DDE",
"Data": {
"TotalCount": 10,
"PageNumber": 1,
"PageSize": 10,
"MetaCollections": [
{
"Name": "test_category",
"Id": "category.123\n\n",
"ParentId": "category.1",
"Description": "",
"Type": "Category",
"CreateUser": 456789,
"CreateTime": 1668568601000,
"ModifyTime": 1668568601000,
"Administrators": [
765432
]
}
]
}
}Error codes
For a list of error codes, visit the Service error codes.
