Creates a category to classify audio, video, image, and short video materials stored in ApsaraVideo VOD, making resource discovery and management more efficient.
Operation description
Audio/video/image categories (
Typeset todefault) support up to three levels, with a maximum of 100 subcategories per level. Short video material categories (Typeset tomaterial) support up to two levels, with a maximum of 100 subcategories per level.After creating a category, you can assign it to media assets during upload or to already uploaded media assets. For more information, see Media asset categories.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:AddCategory |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CateName |
string |
Yes |
The category name.
|
Comedy |
| ParentId |
integer |
No |
The parent category ID. Log on to the ApsaraVideo VOD console and choose Configuration Management > Media Management Configuration > Category Management > Audio/Video/Image Categories or Short Video Material Categories to view category IDs. Note
|
100012**** |
| Type |
string |
No |
The category type. Valid values:
|
default |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| Category |
object |
The media asset category information. |
|
| Type |
string |
The category type. Valid values:
|
default |
| ParentId |
integer |
The parent category ID. |
100012 |
| CateName |
string |
The category name. |
Comedy |
| CateId |
integer |
The category ID. This ID can be used as a request parameter for the UpdateCategory, DeleteCategory, and GetCategories operations. |
10020 |
| Level |
integer |
The category level. Valid values:
|
1 |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"Category": {
"Type": "default",
"ParentId": 100012,
"CateName": "Comedy",
"CateId": 10020,
"Level": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.