文档

GetTask - 单个任务信息

更新时间:

查询单个标注任务信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求语法

GET /openapi/api/v1/tenants/{TenantId}/tasks/{TaskId}

请求参数

名称类型必填描述示例值
TenantIdstring

租户 id,可以通过 ListTenantId 租户列表查询的 API 来查询。

GA***W134
TaskIdstring

任务 id,可在 iTAG 的任务中心中获取。

15***2518306500608

返回参数

名称类型描述示例值
object

项目

Codeinteger

本次请求条件下的数据总量,此参数为可选参数,默认可不返回

0
Messagestring

请求的返回信息

success
RequestIdstring

请求 id

0F01E603-8A9F-18ED-AD43-D52B5030AFA2
Detailsstring

详情

null
Successboolean

是否成功

true
TaskTaskDetail

任务

ErrorCodestring

错误码

""

示例

正常返回示例

JSON格式

{
  "Code": 0,
  "Message": "success",
  "RequestId": "0F01E603-8A9F-18ED-AD43-D52B5030AFA2",
  "Details": "null",
  "Success": true,
  "Task": {
    "Creator": {
      "UserId": 0,
      "AccountType": "ALIYUN",
      "AccountNo": "166***9980757310",
      "UserName": "txdemo@test.aliyunid.com",
      "Role": "ADMIN"
    },
    "Modifier": {
      "UserId": 0,
      "AccountType": "ALIYUN",
      "AccountNo": "166***9980757310",
      "UserName": "txdemo@test.aliyunid.com",
      "Role": "ADMIN"
    },
    "GmtCreateTime": "2022-07-04 11:42:57",
    "GmtModifiedTime": "2022-08-16 18:38:42",
    "TaskName": "测试任务",
    "TaskId": "15438***8306500608",
    "TemplateId": "1529***348342353920",
    "TaskType": "NORMAL",
    "TenantId": "GA***W134",
    "Remark": "demo",
    "LabelStyle": "null",
    "WorkflowNodes": [
      "MARK"
    ],
    "Tags": [
      "text"
    ],
    "Archived": true,
    "Stage": "MARK",
    "ArchivedInfos": "null",
    "Status": "CREATED",
    "RefTaskId": "12312414",
    "UUID": "paiworkspace-0001",
    "TaskWorkflow": [
      {
        "NodeName": "MARK",
        "Exif": false,
        "Users": [
          {
            "UserId": 0,
            "AccountType": "ALIYUN",
            "AccountNo": "166***9980757310",
            "UserName": "txdemo@test.aliyunid.com",
            "Role": "ADMIN"
          }
        ],
        "Groups": [
          "null"
        ]
      }
    ],
    "Exif": null,
    "Admins": [
      {
        "UserId": 0,
        "AccountType": "ALIYUN",
        "AccountNo": "166***9980757310",
        "UserName": "txdemo@test.aliyunid.com",
        "Role": "ADMIN"
      }
    ],
    "AssignConfig": null,
    "TaskTemplateConfig": {
      "Exif": false,
      "TemplateOptionMap": {
        "1": [
          {
            "label": "label1",
            "key": "label1"
          }
        ]
      },
      "SelectQuestions": [
        "[\"question1\"]"
      ],
      "RobotConfig": null,
      "TemplateRelationId": "200",
      "ResourceKey": "picture1"
    },
    "TenantName": "测试任务202208101424",
    "DatasetProxyRelations": [
      {
        "DatasetId": "102***124",
        "Source": "PAI",
        "SourceBizId": "d-24eyimdzdn4a98jktk",
        "DatasetType": "LABEL",
        "Exif": false,
        "SourceDatasetId": "2312124"
      }
    ],
    "AllowAppendData": true,
    "RelateTaskConfig": null,
    "PeriodConfig": {
      "periodConfigId": "",
      "status": ""
    },
    "MineConfigs": null,
    "VoteConfigs": {
      "1": {
        "VoteNum": 1,
        "MinVote": 1
      }
    },
    "NoticeConfig": {
      "DingHook": "",
      "ListenActions": [],
      "SubTaskAlertGap": ""
    },
    "ResultCallbackConfig": {
      "RetMsgMode": "",
      "Exif": {}
    },
    "runMsg": "xxxxx",
    "AlertTime": 12412312
  },
  "ErrorCode": "\"\""
}

错误码

访问错误中心查看更多错误码。

  • 本页导读 (1)
文档反馈