Domain name for API request: vod.intl.tencentcloudapi.com.
This API is no longer maintained. The new version of the moderation template supports video and image moderation. For details, please see Modify Moderation Template.
Modify a user-customized audio/video moderation template.
A maximum of 10 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: ModifyContentReviewTemplate. |
| Version | Yes | String | Common Params. The value used for this API: 2018-07-17. |
| Region | No | String | Common Params. This parameter is not required. |
| Definition | Yes | Integer | Unique identifier of a content review template. |
| SubAppId | No | Integer | VOD application ID. For customers who activate VOD services after December 25, 2023, this field must be set to the app ID when accessing resources in VOD applications, whether in the default application or a newly created application. |
| Name | No | String | Content review template name. The length cannot exceed 64 characters. |
| Comment | No | String | Content review template description, with a length limit of 256 characters. |
| TerrorismConfigure | No | TerrorismConfigureInfoForUpdate | Control parameters for unsafe information. |
| PornConfigure | No | PornConfigureInfoForUpdate | Control parameters for offensive information. |
| PoliticalConfigure | No | PoliticalConfigureInfoForUpdate | Control parameter for inappropriate information. |
| ProhibitedConfigure | No | ProhibitedConfigureInfoForUpdate | Prohibited control parameters. Prohibited content includes: |
| UserDefineConfigure | No | UserDefineConfigureInfoForUpdate | User-defined content review control parameters. |
| ScreenshotInterval | No | Float | Frame interception interval in seconds. Minimum value: 0.5 seconds. |
| ReviewWallSwitch | No | String | Whether the review result enters the review wall (for manual recognition of the review result). |
| 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. |
This example shows you how to modify a custom AI content moderation template. The thresholds for rule violation and manual recognition are set to 90 and 60, respectively, and no tags are specified.
POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyContentReviewTemplate
<Common request parameters>
{
"PornConfigure": {
"ImgReviewInfo": {
"BlockConfidence": 90,
"Switch": "ON",
"ReviewConfidence": 60
}
},
"Definition": 30
}
{
"Response": {
"RequestId": "82ae8d8e-dce3-4151-9d4b-5594145223e1"
}
}
This example shows you how to modify a custom AI content moderation template. The filter tag is specified as sexy, the score threshold for identifying violations is changed to 90, and the score threshold for manual review is changed to 60.
POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyContentReviewTemplate
<Common request parameters>
{
"PornConfigure": {
"ImgReviewInfo": {
"BlockConfidence": 90,
"Switch": "ON",
"ReviewConfidence": 60,
"LabelSet": [
"sexy"
]
}
},
"Definition": 30
}
{
"Response": {
"RequestId": "67ae8d8e-dce3-4151-9d4b-5594145287e1"
}
}
This example shows you how to modify a custom AI content moderation template. The default thresholds for rule violation and manual recognition are used, and no tags are specified.
POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyContentReviewTemplate
<Common request parameters>
{
"PornConfigure": {
"ImgReviewInfo": {
"Switch": "ON"
}
},
"Definition": 30
}
{
"Response": {
"RequestId": "12ae8d8e-dce3-4151-9d4b-5594145287e1"
}
}
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 |
|---|---|
| FailedOperation | Operation failed. |
| FailedOperation.InvalidVodUser | The VOD service is not enabled. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue.BlockConfidence | Incorrect parameter value: the BlockConfidence parameter value is invalid. |
| InvalidParameterValue.Comment | Parameter error: description of this template. |
| InvalidParameterValue.LabelSet | Parameter value error: invalid LabelSet parameter value. |
| InvalidParameterValue.Name | Parameter value error: Name exceeds the length limit. |
| InvalidParameterValue.ReviewConfidence | Incorrect parameter value: the ReviewConfidence parameter value is invalid. |
| InvalidParameterValue.ReviewWallSwitch | Incorrect parameter value: the ReviewWallSwitch parameter value is invalid. |
| InvalidParameterValue.ScreenshotInterval | Incorrect parameter value: the ScreenshotInterval parameter value is invalid. |
| InvalidParameterValue.Switch | Incorrect parameter value: the Switch parameter value is invalid. |
| ResourceNotFound.TemplateNotExist | Resource does not exist: template does not exist. |
| UnauthorizedOperation | Unauthorized operation. |
文档反馈