Batch modifies the title, description, tags, and category information of images by image ID after the images are uploaded to ApsaraVideo VOD.
Operation description
This operation only supports modifying uploaded images. Modifying images generated from video snapshots is not supported.
You can modify the information of up to 20 images at a time.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:UpdateImageInfos |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UpdateContent |
string |
Yes |
The update content. You can modify the information of up to 20 images at a time. For the parameter structure, see the UpdateContent table below. Note
|
[{"ImageId":"ff8fe57e3461416c6a267a4e09****","Title":" title","Description":" description","Tags":" tag1, tag2"}] |
UpdateContent
The value of UpdateContent must be converted to a string before being passed as a parameter.
| Name | Type | Required | Description |
| ImageId | String | Yes | The image ID. You can obtain the image ID by using the following methods: Log on to the ApsaraVideo VOD console and choose Media Files > Image to view the ID. Obtain the ID from the response when you call the CreateUploadImage operation to obtain the upload URL and credential. Obtain the ID from the response when you call the SearchMedia operation to query images. |
| Title | String | No | The image title. The title can be up to 128 bytes in length. UTF-8 encoding. |
| Description | String | No | The image description. The description can be up to 1024 bytes in length. UTF-8 encoding. |
| Tags | String | No | The image tags. Each tag can be up to 32 bytes in length. You can specify up to 16 tags. Separate multiple tags with commas (,). UTF-8 encoding. |
| CateId | Long | No | The category ID. You can obtain the category ID by using the following methods: Log on to the ApsaraVideo VOD console and choose Configuration Management > Media Management > Categories to view the category ID. Obtain the ID from the response when you call the AddCategory operation to create a category. Obtain the ID from the response 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-4AF6-D7393642CA58**** |
| NonExistImageIds |
object |
||
| ImageId |
array |
The list of image IDs that do not exist. |
|
|
string |
The list of image IDs that do not exist. |
f45cf4eba5c80233389558c39**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4AF6-D7393642CA58****",
"NonExistImageIds": {
"ImageId": [
"f45cf4eba5c80233389558c39****"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.