tencent cloud

APIs

문서APIsVideo on DemandDeprecated APIsModifyContentReviewTemplate

ModifyContentReviewTemplate

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-09-18 16:00:03

1. API Description

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

This API is no longer maintained. The new version of the moderation template supports video moderation 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.

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: 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 the content review template.
SubAppId No Integer VOD application ID. For customers who activate VOD services on or 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, with a length limit of 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. Restricted content includes:
  • Abusive language;
  • Drug-related violation.
  • 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).
  • ON: yes
  • OFF: no
  • 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 a Content Moderation Template to Enable Inappropriate Information Detection with Specified Thresholds

    This example shows you how to modify a custom AI content moderation template to enable detection of visually offensive content. The thresholds for rule violation and manual recognition are set to 90 and 60, respectively, and no tags are specified.

    Input Example

    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
    }

    Output Example

    {
        "Response": {
            "RequestId": "82ae8d8e-dce3-4151-9d4b-5594145223e1"
        }
    }

    Example2 Modifying a Content Moderation Template to Enable Offensive Content Moderation with Specified Tags and Thresholds

    This example shows you how to modify a custom AI content moderation template. The tag is specified as sexy, the score threshold for identifying violations is set to 90, and the threshold for manual recognition is set to 60.

    Input Example

    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
    }

    Output Example

    {
        "Response": {
            "RequestId": "67ae8d8e-dce3-4151-9d4b-5594145287e1"
        }
    }

    Example3 Modifying a Content Moderation Template to Enable Offensive Information Detection

    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 filter tags are specified.

    Input Example

    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
    }

    Output Example

    {
        "Response": {
            "RequestId": "12ae8d8e-dce3-4151-9d4b-5594145287e1"
        }
    }

    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
    FailedOperation Operation failed.
    FailedOperation.InvalidVodUser The VOD service is not activated.
    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 Incorrect parameter value: the LabelSet parameter value is invalid.
    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 Parameter value error: invalid Switch parameter value.
    ResourceNotFound.TemplateNotExist Resource does not exist: template does not exist.
    UnauthorizedOperation Unauthorized operation.

    도움말 및 지원

    문제 해결에 도움이 되었나요?

    피드백