Modifies the information of multiple audio and video files.
Operation description
Usage notes
You can locate an audio or video file by its ID. You can modify the title, tags, description, and other information of the audio or video file. If a parameter is passed, the corresponding field is updated. Otherwise, the field is not overwritten or updated.
You can modify the information of up to 20 audio or video files at a time.
QPS limit
The queries per second (QPS) limit on a single user for this API operation is 30. If the number of calls per second exceeds the limit, throttling is triggered. This may affect your business. Call this operation at a reasonable rate. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:UpdateVideoInfos |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UpdateContent |
string |
Yes |
The update content. You can modify object information of up to 20 audio or video files at a time. Separate object information of multiple audio or video files with commas (,). If you attempt to update more than 20 files at a time, the update fails and the |
[{"VideoId":"f45cf4eba5cb90233389558c39****","Title":"Alibaba Cloud VOD Video Title1"},{"VideoId":"f45cf4eba5c84233389558c36****","Title":"Alibaba Cloud VOD Video Title2"}] |
UpdateContent
The value of UpdateContent must be converted to a string before it is passed as a request parameter.
| Parameter | Type | Required | Description |
| VideoId | String | Yes | The ID of the audio or video file. You can obtain the ID by using one of the following methods: If the audio or video file is uploaded by using the console, log on to the ApsaraVideo VOD console and choose Media Assets > Audio/Video to view the ID. When you call the Obtain the upload URL and credential for a video operation to obtain the upload URL and credential, the ID is the value of the VideoId response parameter. After the audio or video file is uploaded, you can call the Search for media information operation to query the ID. The ID is the value of the VideoId response parameter. |
| Title | String | No | The title of the audio or video file. |
| Description | String | No | The description of the audio or video file. |
| Tags | String | No | The tags. A single tag cannot exceed 32 bytes in size. You can add up to 16 tags. Separate multiple tags with commas (,). The tags must be encoded in UTF-8. |
| CoverURL | String | No | The URL of the audio or video cover. |
| CateId | Long | No | The category ID. You can obtain the ID by using one of the following methods: Log on to the ApsaraVideo VOD console and choose Configuration Management > Media Asset Management Settings > Category Management to view the category ID. When you call the Create a category operation to create a category, the ID is the value of the CateId response parameter. When you call the Query categories and subcategories operation to query categories, the ID is the value of the CateId response parameter. |
| ReferenceId | String | No | The custom ID. The ID can contain only lowercase letters, uppercase letters, digits, hyphens (-), and underscores (_), and must be 6 to 64 characters in length. The ID must be unique for each user. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| ForbiddenVideoIds |
array |
The IDs of the audio or video files on which operations are forbidden. This is usually caused by a lack of permissions. |
|
|
string |
The IDs of the audio or video files on which operations are forbidden. This is usually caused by a lack of permissions. |
f45cf4eba5c84233389558c36**** |
|
| NonExistVideoIds |
array |
The IDs of the audio or video files that do not exist. |
|
|
string |
The IDs of the audio or video files that do not exist. |
f45cf4eba5cb90233389558c39**** |
|
| NonExistReferenceIds |
array |
The custom IDs that do not exist. |
|
|
string |
The custom IDs that do not exist. |
123-123 |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"ForbiddenVideoIds": [
"f45cf4eba5c84233389558c36****"
],
"NonExistVideoIds": [
"f45cf4eba5cb90233389558c39****"
],
"NonExistReferenceIds": [
"123-123"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.