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.
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:
|
| 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.
|
| 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. |
| 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 | The resource does not exist: the template does not exist. |
文档反馈