Domain name for API request: vod.intl.tencentcloudapi.com.
Modify a user-customized MPS task template.
When modifying a template, fill in MPS related parameters in MPSModifyTemplateParams in JSON format. For task parameter configuration methods, refer to the MPS task template documentation.
A maximum of 20 requests can be initiated per second for this API.
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 values:
|
| MPSModifyTemplateParams | No | String | MPS template parameter modification. This parameter is used for passing through to the media processing service (MPS) to modify user-defined MPS task templates from the VOD side.
|
| AIAnalysisTemplate | No | MPSAIAnalysisTemplateForUpdate | Intelligent analysis template parameter. Valid when MPSModifyTemplateParams is empty. |
| SmartSubtitleTemplate | No | MPSSmartSubtitleTemplateForUpdate | Smart subtitle template parameter. Valid when MPSModifyTemplateParams is empty. |
| SmartEraseTemplate | No | MPSSmartEraseTemplateForUpdate | Intelligent erasure template parameter. Valid when MPSModifyTemplateParams is empty. |
| EmbedSubtitleTemplate | No | MPSEmbedSubtitleTemplateForUpdate | Subtitle suppression template parameter. Valid when MPSModifyTemplateParams is empty. |
| 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. |
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
}
}
{
"Response": {
"RequestId": "0d54e984-91ba-4b2a-abb3-f417303bfd3a"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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 | Resource does not exist: template does not exist. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback