Updates the titles, descriptions, tags, and categories of multiple images by image ID after the images are uploaded to ApsaraVideo VOD.
Operation description
This operation only supports modifying uploaded images and does not support modifying images generated from video snapshots.
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, refer to 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 it is passed as a parameter.
| Name | Type | Required | Description |
| ImageId | String | Yes | The image ID. You can obtain the image ID by using one of the following methods: Log on to the ApsaraVideo VOD console and choose Media Files > Images to view the ID. The ID is returned when you call the CreateUploadImage operation to obtain the upload URL and credential. The ID is returned 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 and must be encoded in UTF-8. |
| Description | String | No | The image description. The description can be up to 1,024 bytes in length and must be encoded in UTF-8. |
| Tags | String | No | The image tags. A single tag can be up to 32 bytes in length. You can specify up to 16 tags. Separate multiple tags with commas (,). The tags must be encoded in UTF-8. |
| CateId | Long | No | The category ID. You can obtain the category ID by using one of the following methods: Log on to the ApsaraVideo VOD console and choose Configuration > Media Management Configuration > Category Management to view the category ID. The ID is returned when you call the AddCategory operation to create a category. The ID is returned when you call the GetCategories operation to query categories. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response result. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4AF6-D7393642CA58**** |
| NonExistImageIds |
object |
||
| ImageId |
array |
The list of non-existent image IDs. |
|
|
string |
The list of non-existent image IDs. |
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.