文档中心

更新APP识别配置(UpdateRecogCfg)

描述

更新的单个APP下的识别配置

请求参数

公共参数

名称 类型 是否必须 描述
Action String Y 操作接口名,取值:UpdateRecogCfgs
Version String Y 版本号,示例:2016-10-18

请求参数

名称 类型 是否必须 描述
UniqueName String Y 域名标识
App String Y 频道

实体参数

名称 类型 是否必须 描述
RecogType String Y 识别类型配置(色情和性感:PORN,暴恐:TERRORISM,群体:GROUP),除色情和性感需统一开启关闭,其他可任意组合
Enable Boolean Y 是否开启该项识别(开启:true,关闭:false)
Threshold Array Y 阈值;色情,性感,暴恐和群体可分别设置,范围[0.01--0.99],默认值均为0.95

请求示例

PUT http://vcs[.cn-beijing-6].api.ksyun.com?UniqueName=xxx&App=xxx
[Action, Version, Authentication, etc.]
[
    {
        "RecogType": "PORN",
        "Enable": true,
        "Threshold": [
            0.45,
            0.45
        ]
    },
    {
        "RecogType": "GROUP",
        "Enable": true,
        "Threshold": [
            0.45
        ]
    },
    {
        "RecogType": "TERRORISM",
        "Enable": true,
        "Threshold": [
            0.45
        ]
    }
]

返回示例

HTTP Status 200
No Content