Help Center/ ModelArts/ API Reference/ Historical APIs/ Data Management (Old Version)/ Creating a Team Labeling Acceptance Task
Updated on 2024-05-30 GMT+08:00

Creating a Team Labeling Acceptance Task

Function

This API is used to create a team labeling acceptance task.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

URI

POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}/acceptance

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

dataset_id

Yes

String

Dataset ID.

project_id

Yes

String

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID and Name.

workforce_task_id

Yes

String

ID of a team labeling task.

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

sampling_num

No

Integer

Number of samples for the acceptance task. Either this parameter or the sampling ratio is delivered.

sampling_rate

No

Double

Sampling ratio of the acceptance task. The value range is (0,1]. Either this parameter or the number of samples is delivered.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

task_id

String

ID of an asynchronous acceptance task.

Example Requests

Creating a Team Labeling Acceptance Task and Setting the Sampling Percentage to 20%

{
  "sampling_rate" : 0.2
}

Example Responses

Status code: 200

OK

{
  "task_id" : "nv6BbozxCJmZcHAE9hV"
}

Status Codes

Status Code

Description

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.