All Products
Search
Document Center

ApsaraVideo VOD:UpdateAttachedMediaInfos

Last Updated:Jul 21, 2026

Batch updates the information of auxiliary media assets, such as title, description, tags, and category, by specifying the unique identifiers (IDs) of the auxiliary media assets that have been uploaded to ApsaraVideo VOD, including watermarked images, subtitle files, and other materials.

Operation description

You can update the information of up to 20 auxiliary media assets at a time.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vod:UpdateAttachedMediaInfos

update

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

UpdateContent

string

Yes

The update content. You can update the information of up to 20 auxiliary media assets at a time. For the parameter structure, see the UpdateContent table below.

Note
  • The Title, Description, and Tags fields cannot contain emoticons.

  • If a parameter is specified, the corresponding field is updated. Otherwise, the corresponding field is not overwritten or updated.

[{"MediaId":"bbc65bba53f6ed90de118a7849****","Title":" title1","Description":" description1","Tags":" tag1, tag2"},{"MediaId":"f45cf4eba5cb90233389558c39****","Title2":" title","Description2":" description","Tags":" tag3, tag4"}]

UpdateContent

Note

The value of UpdateContent must be converted to a string before being passed as a parameter.

NameTypeRequiredDescription
MediaIdStringYesThe auxiliary media asset ID. This ID is returned after you call the CreateUploadAttachedMedia operation.
TitleStringNoThe title. The title can be up to 128 bytes in length. UTF-8 encoding is used.
DescriptionStringNoThe description. The description can be up to 1024 bytes in length. UTF-8 encoding is used.
TagsStringNoThe tags. Each tag can be up to 32 bytes in length. A maximum of 16 tags can be specified. Separate multiple tags with commas (,). UTF-8 encoding is used.
CateIdsStringNoThe category IDs. Separate multiple IDs with commas (,). You can obtain category IDs by using the following methods:
Log on to the ApsaraVideo VOD console, and choose Configuration Management > Media Asset Management Configuration > Category Management to view the category ID.
The category ID is returned when you call the AddCategory operation to create a category.
The category ID is returned 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-4DF6-D7393642CA58****

NonExistMediaIds

array

The IDs of the auxiliary media assets that do not exist.

string

The IDs of the auxiliary media assets that do not exist.

["bbc65bba53f6ed90de118a7849****"]

Examples

Success response

JSON format

{
  "RequestId": "25818875-5F78-4DF6-D7393642CA58****",
  "NonExistMediaIds": [
    "[\"bbc65bba53f6ed90de118a7849****\"]"
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.