Aggregate responses in a pool

Attention

The toloka.yandex.com domain will be disabled starting July 1, 2023. Please use the toloka.dev domain for API requests.

Starts aggregating responses to all completed tasks in the pool.

Restriction

You can send a maximum of 5 requests of this kind per minute, 30 requests per hour, and 200 requests per day. Refer to the Rate limiting section for the complete list of the request limitations in Toloka API.

Request

Tip

Try our new API reference: more parameter details, request/response examples, and code samples in various programming languages, including the Toloka-Kit usage samples.

Production version
Sandbox
POST https://toloka.dev/api/v1/aggregated-solutions/aggregate-by-pool
Authorization: OAuth <OAuth token>
Content-Type: application/JSON

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.
Content-TypeSpecifies the data format in the request body.

Request body

{
"pool_id": "283",
"type": "WEIGHTED_DYNAMIC_OVERLAP",
"answer_weight_skill_id": "1289",
"fields": [
{
"name": "result"
}
]
}
ParameterOverview
pool_idstring

Pool ID.
type

string

Result aggregation method:

  • WEIGHTED_DYNAMIC_OVERLAP — Aggregation of responses in a pool based on the Toloker's skill.
  • DAWID_SKENE — Aggregation of responses in a pool without dynamic overlap. The answer_weight_skill_id key for this aggregation type is ignored.
answer_weight_skill_idstring

A skill that determines the weight of the Toloker's response.

Required if the WEIGHTED_DYNAMIC_OVERLAP aggregation type is selected.
fieldsobject

Output data fields to use for aggregating responses. For best results, each of these fields must have a limited number of response options.

If the DAWID_SKENE aggregation type is selected, you can only specify one value.
fields.namestring

The output data field name.

Response

Contains operation details: Check the operation status. When it is completed get the aggregation results.

{
"id": "fadfe3jk-fdafue2-fda32890-fdafdi23",
"type": "SOLUTION.AGGREGATE",
"status": "PEDNDING",
"submitted": "2018-22-10T14:18:35",
"progress" : 0,
"parameters": {
"pool_id": "283"
}
}
ParameterOverview
idstring

Operation ID.
type

string

Operation type:

  • POOL.OPEN — Opening a pool.
  • POOL.CLOSE — Closing a pool.
  • PROJECT.ARCHIVE — Archiving a project.
  • POOL.ARCHIVE — Archiving a pool.
  • SOLUTION.AGGREGATE — Aggregating responses.
  • TASK_SUITE.BATCH_CREATE — Creating multiple task suites.
status

string

The status of the operation:

  • PENDING — Not started yet.
  • RUNNING — In progress.
  • SUCCESS — Completed successfully.
  • FAIL — Not completed.
submittedstring

The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
progressinteger

The percentage of the operation completed.
parametersobject

Parameters of the operation in the request.
Contact support
Toloka API
OverviewAccessing the APIRate limiting
Quick start
Reference
Project
Pools
Training
Subscriptions to events
Toloker selection
Ways to upload tasks
Tasks
Task suites
Tracking operations
Getting responses
Checking completed tasks
Bonuses
Messages for Tolokers
Various parameters
Libraries