You need to enable JavaScript to run this app.
导航

获取内容质检任务

最近更新时间2023.11.10 14:14:18

首次发布时间2023.11.10 14:14:18

概述

该接口主要用于客户侧通过内容id/openId获取到内容质检任务信息。

提前准备

  1. 接口鉴权
    详见:接口鉴权
  2. 调用接口
    注意参数 是否必填,并确保 ServiceName、Action、Version 等url信息正确,详见:下方接口信息。

请求接口

请求方式

post

请求url:

https://cms.volcengineapi.com?Action=GetAuditTaskDetailedInfo&Version=2021-01-01

请求header:

ServiceName: volc_content_platform

url组成:

Host: https://cms.volcengineapi.com

Action: GetAuditTaskDetailedInfo

Version: 2021-01-01

请求参数

字段名字段类型是否必填说明

GroupId

string

内容ID

GroupOpenIdstring内容openId
GenerateTypestring内容源标识

说明

入参约束:
当GroupId不为空时,根据GroupId进行获取,当GroupOpenId和GenerateType不为空时,根据GroupOpenId和GenerateType进行获取,如果两组非空约束都不满足,报参数错误

响应字段

字段名
字段类型
说明
ResponseMetadata
ResponseMetadata
Result
Result
修改结果

请求示例

{
    "GroupId":"1774362564709389"
}

响应示例

正常响应示例

{
    "ResponseMetadata": {
        "RequestId": "20230818142128910F2FEDDB972C03C477",
        "Action": "GetAuditTaskDetailedInfo",
        "Version": "2021-01-01",
        "Service": "volc_content_platform",
        "Region": "cn-north-1"
    },
    "Result": {
        "GroupId": "1774362564709389",
        "GroupOpenId": "",
        "GenerateType": "chenke_machine_manual",
        "GroupStatus": "wait_audit",
        "TaskInfos": [
            {
                "ProjectId": "1691662613490466816",
                "ProjectTitle": "chenke_machine_manual-图文",
                "TaskId": "1691713756140699648",
                "ProjectStrategyType": "Source",
                "ProcessType": "MachineAndManual",
                "TaskStatus": "Completed",
                "TaskRound": "ManualRound",
                "TaskResult": "Reject",
                "MachineAuditResult": "Abnormal",
                "ModelInfoList": [
                    {
                        "ID": "0",
                        "Name": "敏感词匹配",
                        "Result": "Suspected",
                        "Modular": "文本质检模型",
                        "Category": [
                            "敏感词"
                        ],
                        "Prob": 1
                    },
                    {
                        "ID": "3",
                        "Name": "短文本涉敏",
                        "Result": "Suspected",
                        "Modular": "文本质检模型",
                        "Category": [
                            "涉敏"
                        ],
                        "Prob": 0.00004082918167114258
                    }
                ],
                "HitInfo": null
            }
        ]
    }
}

异常响应示例

{
    "ResponseMetadata": {
        "RequestId": "20230818142540282ACF0F84F41FCB8F4B",
        "Action": "GetAuditTaskDetailedInfo",
        "Version": "2021-01-01",
        "Service": "volc_content_platform",
        "Region": "cn-north-1",
        "Error": {
            "CodeN": 600400,
            "Code": "600400",
            "Message": "参数错误"
        }
    },
    "Result": null
}
{
    "ResponseMetadata": {
        "RequestId": "20230818142623282ACF0F84F41FCC0635",
        "Action": "GetAuditTaskDetailedInfo",
        "Version": "2021-01-01",
        "Service": "volc_content_platform",
        "Region": "cn-north-1",
        "Error": {
            "CodeN": 600450,
            "Code": "600450",
            "Message": "文章不存在"
        }
    },
    "Result": null
}