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.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- 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 Key: the condition key that is defined by the cloud service.
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ice:UpdateMediaInfo |
|
| 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 | long | 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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"MediaId": "****20b48fb04483915d4f2cd8ac****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|