Updates the basic information about a media file.
Operation description
The basic information that you can update by calling this operation includes the title, description, and category of a media file. This operation applies to a full update. You must set all the parameters unless you want to replace the value of a specific parameter with a NULL value.
QPS limit
You can call this operation up to 100 times per second per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limit.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
MediaId | string | Yes | The ID of the media file whose basic information you want to update. To obtain the ID of the media file, you can log on to the ApsaraVideo Media Processing (MPS) console and choose Media Management > Media List in the left-side navigation pane. | 3e1cd21131a94525be55acf65888**** |
Title | string | No | The title of the media file. Multiple character types, such as letters and digits, are supported.
| hello |
Description | string | No | The description of the media file. Multiple character types, such as letters and digits, are supported.
| example description |
CoverURL | string | No | The URL of the thumbnail. This parameter is used to specify the storage location of the thumbnail. To obtain the URL, you can log on to the MPS console and choose Workflows > Media Buckets in the left-side navigation pane. Alternatively, you can log on to the OSS console and click Buckets in the left-side navigation pane.
| http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com/test****.jpg |
CateId | long | No | The ID of the category to which the media file belongs. The value must be an integer.
| 1 |
Tags | string | No | The tags that you want to add to the media file.
| tag1,tag2 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6A88246F-C91F-42BD-BABE-DB0DF993F960",
"Media": {
"CreationTime": "2016-09-14T08:30:33Z",
"CateId": 1,
"Height": "1080",
"CensorState": "Initiated",
"Tags": {
"Tag": [
"tag1,tag2"
]
},
"Bitrate": "2659.326",
"MediaId": "3e1cd21131a94525be55acf65888****",
"File": {
"State": "Normal",
"URL": "http://example-bucket-****.oss-cn-hangzhou.aliyuncs.com//example-****.mp4"
},
"PublishState": "Published",
"Description": "example description",
"Width": "1920",
"Size": "2647692",
"CoverURL": "http://example-bucket-****.oss-cn-shanghai.aliyuncs.com/example-****.jpg",
"RunIdList": {
"RunId": [
"{\"RunId\":[\"47b42486019c4f688bf144c1a6ba****\"]}"
]
},
"Duration": "7.965000",
"Fps": "25.0",
"Title": "hello",
"Format": "mov"
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|