All Products
Search
Document Center

UpdateTranscodeTemplateGroup

Last Updated: Jul 11, 2019

Description

You can call this operation to modify the configurations of the specified transcoding templates in a transcoding template group.

Note: You cannot perform custom operations on transcoding template groups that are locked in the ApsaraVideo for VOD console. To operate such transcoding template groups, contact ApsaraVideo for VOD technical support.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to UpdateTranscodeTemplateGroup.
TranscodeTemplateGroupId String Yes The ID of the transcoding template group.
Name String No The name of the transcoding template group.
  • Length constraint: Maximum length of 128 bytes.
  • Encoding: UTF-8.
TranscodeTemplateList TranscodeTemplate[] No The transcoding template configuration information. The value is a JSON-formatted string.

Response parameters

Parameter Type Description
RequestId String The ID of the request.
TranscodeTemplateGroupId String The ID of the transcoding template group.

API examples

Sample request

https://vod.cn-shanghai.aliyuncs.com?Action=UpdateTranscodeTemplateGroup&Name=transcodetemplate&TranscodeTemplateGroupId=34e908aa4024a9ae4df71c31f93a2a&TranscodeTemplateList=[{"Video":{"Bitrate":"400","Codec":"H. 264","Fps":"30"},"Audio":{"Codec":"AAC","Bitrate":"64","Definition":"SD","EncryptType":"Private","Container":{"Format":"m3u8"},"PackageType":"HLSPackage"}}]

Sample response

JSON format

{
  "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  "TranscodeTemplateGroupId":"34e908aa4024a9ae4df78211f93a2a"
}

Error codes

This operation also returns common errors. For more information about errors common to all operations, see common errors.

Error code Error message HTTP status code Description
InvalidStorage.NotFound The storage info does not exist. 404 The error message returned because no bucket has been allocated by ApsaraVideo for VOD.
InvalidTranscodeTemplateGroup.NotFound The transcode template group does not exist 404 The error message returned because the specified transcoding template group does not exist.
Forbidden.LockedTemplateGroup The transcode template group has been locked. 403 The error message returned because the specified transcoding template group is locked and cannot be operated. To operate the transcoding template group, contact ApsaraVideo for VOD technical support.

SDK examples

We recommend that you use a server SDK to call this operation. For more information about the sample code used to call this operation in various languages, see the following topics: