tencent cloud

APIs

ModifyMPSTemplate

Download
聚焦模式
字号
最后更新时间: 2026-05-19 15:01:29

1. API Description

Domain name for API request: vod.intl.tencentcloudapi.com.

Modify a user-customized MPS task template.
When modifying a template, require filling in MPS related parameters in JSON format into the MPSModifyTemplateParams parameter. For specific task parameter configuration methods, refer to the MPS task template document description.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: ModifyMPSTemplate.
Version Yes String Common Params. The value used for this API: 2018-07-17.
Region No String Common Params. This parameter is not required.
SubAppId Yes Integer

VOD application ID.

TemplateType Yes String

Type of the MPS template that needs to be modified.

Enumeration value:

  • AIAnalysis: Intelligent analysis template
  • SmartSubtitle: Intelligent subtitle template
  • SmartErase: Intelligent erasure template
MPSModifyTemplateParams No String

MPS modifies template parameters. This parameter is used for passing through to the media processing service (MPS) to modify user-defined MPS task templates from the VOD side.
Currently only support modifying templates of the following task types in this way:

  1. Audio and video enhancement: Only support filling in the content of Name, Comment, RemoveVideo, RemoveAudio, VideoTemplate, AudioTemplate, and EnhanceConfig parameters in the "modify transcoding template" interface. Currently only support configuring the above parameters in the template, other parameters are not required. If other parameters are included, the system will automatically ignore them.
  2. AI analysis: Only support filling in the content of Name, Comment, ClassificationConfigure, TagConfigure, CoverConfigure, and FrameTagConfigure parameters in the "modify content analysis template" interface. Currently only support configuring the above parameters in the template, other parameters are not required. If other parameters are included, the system will automatically ignore them.
  3. Intelligent caption: Only support filling in the content of Name, Comment, TranslateSwitch, VideoSrcLanguage, SubtitleFormat, SubtitleType, AsrHotWordsConfigure, TranslateDstLanguage, and ProcessType parameters in the "modify intelligent caption template" interface. Currently only support configuring the above parameters in the template, other parameters are not required. If other parameters are included, the system will automatically ignore them.
  4. Intelligent erasure: Only support filling in the content of Name, Comment, EraseType, EraseSubtitleConfig, EraseWatermarkConfig, and ErasePrivacyConfig parameters in the "modify intelligent erasure template" interface. Currently only support configuring the above parameters in the template, other parameters are not required. If other parameters are included, the system will automatically ignore them.
AIAnalysisTemplate No MPSAIAnalysisTemplateForUpdate

Intelligent analysis template parameter. Valid when MPSModifyTemplateParams is empty.

SmartSubtitleTemplate No MPSSmartSubtitleTemplateForUpdate

Intelligent subtitle template parameter. Valid when MPSModifyTemplateParams is empty.

SmartEraseTemplate No MPSSmartEraseTemplateForUpdate

Intelligent erasure template parameter. Valid when MPSModifyTemplateParams is empty.

3. Output Parameters

Parameter Name Type Description
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Modifying an MPS Video Intelligence Subtitle Template

Input Example

POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyMPSTemplate
<Common request parameters>

{
    "SubAppId": 221157,
    "TemplateType": "SmartSubtitle",
    "SmartSubtitleTemplate": {
        "Definition": 50023,
        "Name": "Template1",
        "Comment": "SmartSubtitle Template1",
        "SubtitleType": 0,
        "VideoSrcLanguage": "en",
        "SubtitleFormat": "vtt",
        "TranslateSwitch": "OFF",
        "ProcessType": 0
    }
}

Output Example

{
    "Response": {
        "RequestId": "0d54e984-91ba-4b2a-abb3-f417303bfd3a"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InternalError Internal error.
InvalidParameterValue Parameter value error.
ResourceNotFound.TemplateNotExist The resource does not exist: the template does not exist.

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈