All Products
Search
Document Center

ApsaraVideo VOD:UpdateAttachedMediaInfos

Last Updated:Jul 19, 2024

Modifies the information about multiple auxiliary media assets at a time.

Operation description

The specific parameter of an auxiliary media asset is updated only when a new value is passed in the parameter.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
UpdateContentstringYes

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

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

UpdateContent

Note You must convert the UpdateContent[] parameter to a string before you pass it in.
ParameterTypeRequiredDescription
MediaIdStringYesThe ID of the auxiliary media asset.
TitleStringNoThe title of the auxiliary media asset. The value can be up to 128 bytes in length. The string must be encoded in the UTF-8 format.
DescriptionStringNoThe description of the auxiliary media asset. The value can be up to 1,024 bytes in length. The string must be encoded in the UTF-8 format.
TagsStringNoThe tags of the auxiliary media asset. Each tag can be up to 32 bytes in length. A maximum of 16 tags can be specified. Separate multiple tags with commas (,). The string must be encoded in the UTF-8 format.
CateIdsStringNoThe ID of the category. Separate multiple IDs with commas (,).

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The ID of the request.

25818875-5F78-4DF6-D7393642CA58****
NonExistMediaIdsarray

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

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.