Creates a media asset category.
Operation description
Categories support up to three levels, and each level supports up to 100 subcategories.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:AddCategory |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CateName |
string |
Yes |
The category name.
|
Third-level subcategory |
| ParentId |
integer |
No |
The parent category ID. |
5 |
| Type |
string |
No |
The category type. Valid values:
|
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
****63E8B7C7-4812-46AD-0FA56029AC86**** |
| Category |
object |
The media asset category information. |
|
| Type |
string |
The category type. Valid values:
|
default |
| ParentId |
integer |
The parent category ID. If the ParentId parameter is set to empty or a value less than 1, the default return value is -1, which indicates that the created category is a root directory. |
-1 |
| CateName |
string |
The category name. |
Category 1 |
| CateId |
integer |
The ID of the created category. |
45 |
| Level |
integer |
The category level. The first-level category has a level of 0, the second-level category has a level of 1, and the third-level category has a level of 2. |
0 |
Examples
Success response
JSON format
{
"RequestId": "****63E8B7C7-4812-46AD-0FA56029AC86****",
"Category": {
"Type": "default",
"ParentId": -1,
"CateName": "Category 1",
"CateId": 45,
"Level": 0
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.