Updates information about a media asset based on the ID of the media asset in Intelligent Media Services (IMS) or the input URL of the media asset.
Operation description
If the MediaId parameter is specified, the MediaId parameter is preferentially used for the query. If the MediaId parameter is left empty, the InputURL parameter must be specified. The request ID and media asset ID are returned. You cannot modify the input URL of a media asset by specifying the ID of the media asset.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:UpdateMediaInfo |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| MediaId |
string |
No |
The ID of the media asset. If this parameter is left empty, you must specify the input URL of the media asset, which has been registered in the IMS content library. |
****20b48fb04483915d4f2cd8ac**** |
| InputURL |
string |
No |
The input URL of the media asset in another service. The URL must be bound to the ID of the media asset in IMS. The URL cannot be modified once registered. For a media asset from Object Storage Service (OSS), the URL may have one of the following formats: 1. http(s)://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 2. oss://example-bucket/example.mp4. This format indicates that the region in which the OSS bucket of the media asset resides is the same as the region in which OSS is activated. |
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 |
| BusinessType |
string |
No |
The business type. Valid values:
|
video |
| Title |
string |
No |
The title.
|
defaultTitle |
| Description |
string |
No |
The content description.
|
defaultDescription |
| Category |
string |
No |
The category.
|
defaultCategory |
| MediaTags |
string |
No |
The tags.
|
updateTags1,updateTags2 |
| CoverURL |
string |
No |
The URL of the thumbnail.
|
http://example-bucket.oss-cn-shanghai.aliyuncs.com/example.png |
| UserData |
string |
No |
The user data. It can be up to 1,024 bytes in size. |
userData |
| AppendTags |
boolean |
No |
Specifies whether to append tags. Default value: false. Valid values:
|
true |
| CateId |
integer |
No |
The category ID. |
3048 |
| ReferenceId |
string |
No |
The custom ID. The ID can be 6 to 64 characters in length and can contain only letters, digits, hyphens (-), and underscores (_). Make sure that the ID is unique among users. |
123-123 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| MediaId |
string |
The ID of the media asset in IMS. |
****20b48fb04483915d4f2cd8ac**** |
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"MediaId": "****20b48fb04483915d4f2cd8ac****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.