All Products
Search
Document Center

UpdateImageInfos

Last Updated: Mar 04, 2019

Description

You can call this operation to modify the information about multiple images.

Note: The image information is updated based on the parameters that you have set.

Request parameters

NameTypeRequiredDescription
ActionStringYesThe operation that you want to perform. Set the value to UpdateImageInfos.
UpdateContentUpdateContent[]YesThe updates. You can modify the information about a maximum of 20 images at a time.

UpdateContent

Note: You need to convert UpdateContent[] into a string before passing it in.

NameTypeRequiredDescription
ImageIdStringYesThe image ID.
TitleStringNoThe image title.
  • Length constraint: Maximum length of 128 bytes.
  • Encoding: UTF-8.
DescriptionStringNoThe image description.
  • Length constraint: Maximum length of 1,024 bytes.
  • Encoding: UTF-8.
TagsStringNoThe image tags.
  • Length constraint per tag: Maximum length of 32 bytes.
  • You can enter a maximum of 16 tags.
  • Separate multiple tags with a comma (,).
  • Encoding: UTF-8.
CateIdLongNoThe category ID.

Note: Updated parameters (such as Title, Description, and Tags) cannot contain emoticons.

Response parameters

NameTypeDescription
RequestIdString The GUID generated by Alibaba Cloud for the request.
NonExistImageIdsString[] The list of image IDs that do not exist.

Examples

Sample requests

  1. http://vod.cn-shanghai.aliyuncs.com/?Action=UpdateVideoInfos&UpdateContent=[{"ImageId":"ff8fe57e3461416c9d40d66a267a4e09","Title":"Title","Description":"Description","Tags":"Tag 1,Tag 2"}]&Format=JSON&<Common request parameters>

Note: For more information about common request parameters, see Common parameters.

Sample responses

JSON format

  1. {
  2. "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  3. "NonExistImageIds":["f45cf4eba5c84d25b90233389558c39"]
  4. }