Media asset categories
Media asset categorization is the process of sorting resources, such as audio, video, and images, into groups. Proper categorization helps you retrieve and manage resources more efficiently. This topic provides API call examples from the Python software development kit (SDK) for creating and managing categories.
Usage notes
For details on API parameters and response fields, visit Alibaba Cloud OpenAPI Explorer and view the Documentation tab for each API.
You can get SDK sample code from Alibaba Cloud OpenAPI Explorer. On the Parameters tab, configure the required parameters and make a call. Then, on the SDK Sample Code tab, select the SDK version and programming language to view and download the code. For more information, see Automatic generation of SDK examples.
Initialize a client
Before you use the SDK, initialize a client. For more information, see Initialization.
Create a category
You can call the AddCategory operation to create a category.
Alibaba Cloud OpenAPI Portal: AddCategory .
Update a category
You can call the UpdateCategory operation to update a category.
Alibaba Cloud OpenAPI Portal: UpdateCategory.
Delete a category
You can call the DeleteCategory operation to delete a category.
Alibaba Cloud OpenAPI Portal: DeleteCategory .
Query a category and its subcategories
You can call the GetCategories operation to query a category and its subcategories.
Alibaba Cloud OpenAPI Portal: GetCategories.
References
-
Media asset categories: Manage media asset categories in the ApsaraVideo VOD console.
-
Media asset category management: Complete SDK sample code for media asset category management.