Batch updates the information of auxiliary media assets, such as title, description, tags, and category, by specifying the unique identifiers (IDs) of the auxiliary media assets that have been uploaded to ApsaraVideo VOD, including watermarked images, subtitle files, and other materials.
Operation description
You can update the information of up to 20 auxiliary media assets at a time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:UpdateAttachedMediaInfos |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UpdateContent |
string |
Yes |
The update content. You can update the information of up to 20 auxiliary media assets at a time. For the parameter structure, see the UpdateContent table below. Note
|
[{"MediaId":"bbc65bba53f6ed90de118a7849****","Title":" title1","Description":" description1","Tags":" tag1, tag2"},{"MediaId":"f45cf4eba5cb90233389558c39****","Title2":" title","Description2":" description","Tags":" tag3, tag4"}] |
UpdateContent
The value of UpdateContent must be converted to a string before being passed as a parameter.
| Name | Type | Required | Description |
| MediaId | String | Yes | The auxiliary media asset ID. This ID is returned after you call the CreateUploadAttachedMedia operation. |
| Title | String | No | The title. The title can be up to 128 bytes in length. UTF-8 encoding is used. |
| Description | String | No | The description. The description can be up to 1024 bytes in length. UTF-8 encoding is used. |
| Tags | String | No | The tags. Each tag can be up to 32 bytes in length. A maximum of 16 tags can be specified. Separate multiple tags with commas (,). UTF-8 encoding is used. |
| CateIds | String | No | The category IDs. Separate multiple IDs with commas (,). You can obtain category IDs by using the following methods: Log on to the ApsaraVideo VOD console, and choose Configuration Management > Media Asset Management Configuration > Category Management to view the category ID. The category ID is returned when you call the AddCategory operation to create a category. The category ID is returned when you call the GetCategories operation to query categories. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4DF6-D7393642CA58**** |
| NonExistMediaIds |
array |
The IDs of the auxiliary media assets that do not exist. |
|
|
string |
The IDs of the auxiliary media assets that do not exist. |
["bbc65bba53f6ed90de118a7849****"] |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4DF6-D7393642CA58****",
"NonExistMediaIds": [
"[\"bbc65bba53f6ed90de118a7849****\"]"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.