tencent cloud

APIs

ModifyContentReviewTemplate

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2026-05-19 15:02:34

1. API Description

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.

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 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:
  • Abuse;
  • Drug-related violation.
  • 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).
  • 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 Image Detection with Specified Thresholds

    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.

    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 Detection with Specified Tags and Thresholds

    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.

    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 Image Detection

    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.

    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 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.

    Ajuda e Suporte

    Esta página foi útil?

    comentários