All Products
Search
Document Center

ApsaraVideo VOD:UpdateTranscodeTemplateGroup

更新時間:Nov 11, 2025

Modifies the configurations of a transcoding template group or configurations of transcoding templates within the transcoding template group.

Operation description

For security purposes, you cannot add, modify, or delete transcoding templates in a locked transcoding template group. You can call the GetTranscodeTemplateGroup operation to query the template configurations and check whether the template group is locked based on the Locked response parameter. Alternatively, you can call this operation to unlock the template group before you add, modify, or delete templates.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vod:UpdateTranscodeTemplateGroup

update

*All Resource

*

None

None

Request parameters

Parameter

Type

Required

Description

Example

Name

string

No

The name of the transcoding template group.

  • The name cannot exceed 128 bytes.

  • The value is encoded in UTF-8.

transcodetemplate

TranscodeTemplateList

string

No

The configurations of the transcoding template. The value must be a JSON string. For more information about the parameter structure, see TranscodeTemplate.

[{"Video":{"Bitrate":"400","Codec":"H.264","Fps":"30"},"Audio":{"Codec":"AAC","Bitrate":"64","Definition":"SD","EncryptType":"Private","Container":{"Format":"m3u8"},"PackageType":"HLSPackage"}}]

Locked

string

No

The lock status of the transcoding template group. Valid values:

  • Enabled: The template group is locked. A locked template group cannot be modified.

  • Disabled (default): The template group is not locked.

The default value is Disabled. When you pass this parameter, the lock status of the template group is modified, but the name and configurations of the transcoding template group remain unchanged.

Disabled

TranscodeTemplateGroupId

string

Yes

The ID of the transcoding template group.

4c71a339fe*****52b4fa6f4527

Response elements

Parameter

Type

Description

Example

object

Indicates whether the call is successful.

TranscodeTemplateGroupId

string

The ID of the transcoding template group.

34e908aa4024a*****f7821c31f93a2a

RequestId

string

The ID of the request.

25818875-5F78-4A*****F6-D7393642CA58

Examples

Success response

JSON format

{
  "TranscodeTemplateGroupId": "34e908aa4024a*****f7821c31f93a2a",
  "RequestId": "25818875-5F78-4A*****F6-D7393642CA58"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.