All Products
Search
Document Center

ApsaraVideo VOD:UpdateImageInfos

Last Updated:Nov 09, 2022

Modifies the information about one or more images at a time.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operateaccess levelResource typeconditional keywordAssociation operation
vod:UpdateImageInfosWrite
  • VOD
    acs:vod:*:{#accountId}:*/*
    without
without

Request parameters

ParameterTypeRequiredDescriptionExample
UpdateContentstringYes

The new information about the one or more images. You can modify the information about up to 20 images at a time. For more information, see the UpdateContent section of this topic.

NoteThe values of the nested parameters Title, Description, and Tags under the UpdateContent parameter cannot contain emoticons.
[{"ImageId":"ff8fe57e3461416c6a267a4e09****","Title":"test title","Description":"test description","Tags":"tag1,tag2"}]

UpdateContent

NoteYou must convert the UpdateContent [] parameter to a string before you pass it in.
ParameterTypeRequiredDescription
ImageIdStringYesThe ID of the image.
TitleStringNoThe title of the image. The title can be up to 128 bytes in length. Encode the title in UTF-8.
DescriptionStringNoThe description of the image. The description can be up to 1,024 bytes in length. Encode the description in UTF-8.
TagsStringNoThe tags of the image. Each tag can be up to 32 bytes in length. You can specify a maximum of 16 tags. Separate multiple tags with commas (,). Encode the tags in UTF-8.
CateIdLongNoThe ID of the category.

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The ID of the request.

25818875-5F78-4AF6-D7393642CA58****
NonExistImageIdsarray

The IDs of the images that do not exist.

string

The IDs of the images that do not exist.

f45cf4eba5c80233389558c39****

Example

Normal return example

JSONFormat

{
  "RequestId": "25818875-5F78-4AF6-D7393642CA58****",
  "NonExistImageIds": [
    "f45cf4eba5c80233389558c39****"
  ]
}

Error codes

For a list of error codes, visit the API error center.