Aggregate responses to a single task

To start the response aggregation for one task, send a POST request to the /api/v1/aggregated-solutions/aggregate-by-task resource.

Request

POST /api/v1/aggregated-solutions/aggregate-by-task
Host: https://sandbox.toloka.yandex.com
Authorization: OAuth <OAuth token>
Content-Type: application/JSON
{
  "task_id": "afd1234d-12314a-cfd1424d-31214b",
  "pool_id": "283",
  "type": "WEIGHTED_DYNAMIC_OVERLAP", 
  "answer_weight_skill_id": "1289",
  "fields": [
    {
      "name": "result"
    }
  ]
}
Copied to clipboard
Key descriptions
Key Value Data type

task_id

Task ID. String
pool_id Pool ID. String
type Aggregation type.
  • WEIGHTED_DYNAMIC_OVERLAP — Aggregation of responses in a pool with dynamic overlap (also known as incremental relabeling or IRL).
  • DAWID_SKENE — Aggregation of responses in a pool without dynamic overlap. The answer_weight_skill_id key for this aggregation type is ignored.
String
answer_weight_skill_id A skill that determines the weight of the performer's response. String
fields Output data fields to use for aggregating responses. For best results, each of these fields must have a limited number of response options. JSON
fields.name The output data field name. String
Key Value Data type

task_id

Task ID. String
pool_id Pool ID. String
type Aggregation type.
  • WEIGHTED_DYNAMIC_OVERLAP — Aggregation of responses in a pool with dynamic overlap (also known as incremental relabeling or IRL).
  • DAWID_SKENE — Aggregation of responses in a pool without dynamic overlap. The answer_weight_skill_id key for this aggregation type is ignored.
String
answer_weight_skill_id A skill that determines the weight of the performer's response. String
fields Output data fields to use for aggregating responses. For best results, each of these fields must have a limited number of response options. JSON
fields.name The output data field name. String

Response

Contains the aggregated task response.

{
  "confidence": 0.937152,
  "output_values": {
    "result": "OK"
  }, 
  "pool_id": "283",
  "task_id": "afd1234d-12314a-cfd1424d-31214b"
}
Key descriptions
Key Value Data type

task_id

Task ID. String
pool_id Pool ID. String
confidence Confidence in the aggregate response. Number
output_values Output data fields and aggregate response. JSON
Key Value Data type

task_id

Task ID. String
pool_id Pool ID. String
confidence Confidence in the aggregate response. Number
output_values Output data fields and aggregate response. JSON