Domain name for API request: vod.intl.tencentcloudapi.com.
We have stopped updating this API. Our new moderation templates can moderate audio/video as well as images. For details, see ModifyReviewTemplate.
This API is used to modify a custom 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 | On-demand application ID. Customers who activate on-demand services from December 25, 2023 must fill this field with the app ID when accessing resources in on-demand applications (whether default or newly created). |
| Name | No | String | Content review template name. The length cannot exceed 64 characters. |
| Comment | No | String | Content review template description information, 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, unit: seconds, minimum value 0.5. |
| ReviewWallSwitch | No | String | Switch for whether the review result enters the review wall (manual recognition performed on 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 score thresholds for identifying violations and manual review are set to 90 and 60, respectively, with no filter tags 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. Assign the filter tag as sexy, change the score threshold for identifying violations to 90, and set the threshold for manual review 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 identifying violations and manual review in image moderation tasks 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 activated. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue.BlockConfidence | Incorrect parameter value: the value of the BlockConfidence parameter is invalid. |
| InvalidParameterValue.Comment | Invalid parameter: template description. |
| InvalidParameterValue.LabelSet | Incorrect parameter value: the value of the LabelSet parameter is invalid. |
| InvalidParameterValue.Name | Incorrect parameter value: Name exceeds the length limit. |
| InvalidParameterValue.ReviewConfidence | Incorrect parameter value: the value of the ReviewConfidence parameter is invalid. |
| InvalidParameterValue.ReviewWallSwitch | Incorrect parameter value: the value of the ReviewWallSwitch parameter is invalid. |
| InvalidParameterValue.ScreenshotInterval | Incorrect parameter value: the value of the ScreenshotInterval parameter is invalid. |
| InvalidParameterValue.Switch | Incorrect parameter value: the value of the Switch parameter is invalid. |
| ResourceNotFound.TemplateNotExist | The resource does not exist: the template does not exist. |
| UnauthorizedOperation | Unauthorized operation. |
文档反馈